public static Set<String> getAllowClassPattern() {
        return Collections.unmodifiableSet(ALLOW_CLAZZ_PATTERN);
    }
@Test
    public void getAllowClassPattern() {
        Assertions.assertTrue(
            SerializerSecurityRegistry.getAllowClassPattern().contains(Long.class.getCanonicalName()));
        Assertions.assertTrue(
            SerializerSecurityRegistry.getAllowClassPattern().contains(Integer.class.getCanonicalName()));
        Assertions.assertTrue(
            SerializerSecurityRegistry.getAllowClassPattern().contains(HeartbeatMessage.class.getCanonicalName()));
        Assertions.assertTrue(
            SerializerSecurityRegistry.getAllowClassPattern().contains(BranchCommitRequest.class.getCanonicalName()));
        Assertions.assertTrue(
            SerializerSecurityRegistry.getAllowClassPattern().contains(BranchCommitResponse.class.getCanonicalName()));
        Assertions.assertFalse(SerializerSecurityRegistry.getAllowClassPattern()
            .contains(AbstractBranchEndRequest.class.getCanonicalName()));
        Assertions.assertFalse(
            SerializerSecurityRegistry.getAllowClassPattern().contains(Version.class.getCanonicalName()));
        Assertions.assertTrue(SerializerSecurityRegistry.getAllowClassPattern().contains("org.apache.seata.*"));
    }