@Test
    public void getSerializerFactory() {
        Assert.assertEquals(SingleClassLoaderSofaSerializerFactory.class,
            serializer.getSerializerFactory(false, false).getClass());
        Assert.assertEquals(MultipleClassLoaderSofaSerializerFactory.class,
            serializer.getSerializerFactory(true, false).getClass());
        Assert.assertEquals(GenericSingleClassLoaderSofaSerializerFactory.class,
            serializer.getSerializerFactory(false, true).getClass());
        Assert.assertEquals(GenericMultipleClassLoaderSofaSerializerFactory.class,
            serializer.getSerializerFactory(true, true).getClass());
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-sofa-hessian/src/test/java/com/alipay/sofa/rpc/codec/sofahessian/SofaHessianSerializerTest.java