public static CompactSerializationConfig newCompactSerializationConfig(
            List<String> serializerClassNames,
            List<String> compactSerializableClassNames
    ) {
        CompactSerializationConfig config = new CompactSerializationConfig();

        for (String compactSerializableClassName : compactSerializableClassNames) {
            CompactSerializationConfigAccessor.registerClass(config, compactSerializableClassName);
        }

        for (String serializerClassName : serializerClassNames) {
            CompactSerializationConfigAccessor.registerSerializer(config, serializerClassName);
        }

        return config;
    }
@Test
    public void should_create_compact_serialization_config() {
        List<String> compactSerializerClassNames = new ArrayList<>();
        List<String> compactSerializableClassNames = new ArrayList<>();
        compactSerializerClassNames.add("a");
        compactSerializableClassNames.add("b");
        CompactSerializationConfig config = ConfigFactory.newCompactSerializationConfig(
                compactSerializerClassNames,
                compactSerializableClassNames
        );
        assertThat(CompactSerializationConfigAccessor.getSerializerClassNames(config))
                .isEqualTo(compactSerializerClassNames);
        assertThat(CompactSerializationConfigAccessor.getCompactSerializableClassNames(config))
                .isEqualTo(compactSerializableClassNames);
    }