@Test
    public void testHashCode() {
        RegistryConfig config1 = new RegistryConfig();
        RegistryConfig config2 = new RegistryConfig();
        config1.setAddress("127.0.0.1:1234").setProtocol("xxx");
        config2.setAddress("127.0.0.1:1234").setProtocol("yyy");
        Assert.assertFalse(config1.hashCode() == config2.hashCode());
        config2.setProtocol("xxx");
        Assert.assertTrue(config1.hashCode() == config2.hashCode());
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
core/api/src/test/java/com/alipay/sofa/rpc/config/RegistryConfigTest.java