@Test
    public void testDynamicLoadEnabled() throws Exception {
        try {
            System.setProperty(SerializerFactory.DYNAMIC_LOAD_ENABLE_KEY, "true");
            SingleClassLoaderSofaSerializerFactory factory = new SingleClassLoaderSofaSerializerFactory();
            Field field = SingleClassLoaderSofaSerializerFactory.class.getDeclaredField("_typeNotFoundMap");
            field.setAccessible(true);
            Map<ClassLoader, Map<String, Object>> _typeNotFoundMap = (Map<ClassLoader, Map<String, Object>>) field
                .get(factory);
            Assert.assertEquals(0, _typeNotFoundMap.size());
            Deserializer deserializer = factory.getDeserializer("mock.xxx.MockObject");
            Assert.assertNull(deserializer);
            Assert.assertEquals(0, _typeNotFoundMap.size());
        } finally {
            System.clearProperty(SerializerFactory.DYNAMIC_LOAD_ENABLE_KEY);
        }
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-sofa-hessian/src/test/java/com/alipay/sofa/rpc/codec/sofahessian/SingleClassLoaderSofaSerializerFactoryTest.java