@Test
    public void testAll() throws Exception {

        List<String> blacks = BlackAndWhiteListFileLoader.SOFA_SERIALIZE_BLACK_LIST;
        Assert.assertNotNull(blacks);

        String s = System.getProperty(SofaOptions.CONFIG_SERIALIZE_BLACKLIST_OVERRIDE);
        try {
            System.setProperty(SofaOptions.CONFIG_SERIALIZE_BLACKLIST_OVERRIDE, "-java.net.Socket");
            blacks = BlackAndWhiteListFileLoader.loadBlackListFile("/sofa-rpc/serialize_blacklist.txt");
        } finally {
            if (s != null) {
                System.setProperty(SofaOptions.CONFIG_SERIALIZE_BLACKLIST_OVERRIDE, s);
            }
        }

        NameBlackListFilter filter = new NameBlackListFilter(blacks);
        boolean pass = true;
        String className = null;
        try {
            className = filter.resolve("com.alipay.xx");
        } catch (Exception e) {
            pass = false;
        }
        Assert.assertNotNull(className);
        Assert.assertTrue(pass);

        pass = true;
        try {
            className = filter.resolve("com.sun.rowset.JdbcRowSetImpl");
        } catch (Exception e) {
            pass = false;
        }
        Assert.assertFalse(pass);
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
codec/codec-sofa-hessian/src/test/java/com/alipay/sofa/rpc/codec/sofahessian/BlackAndWhiteListFileLoaderTest.java