@Test
    public void testRefreshDomain() {
        ConsumerConfig<Object> consumerConfig = new ConsumerConfig<>();
        String directUrl1 = "bolt://alipay.com";
        String directUrl2 = "bolt://taobao.com";
        String directUrl = directUrl1 + ";" + directUrl2;
        consumerConfig.setDirectUrl(directUrl);
        domainRegistry.subscribe(consumerConfig);

        assertTrue(domainRegistry.notifyListeners.containsKey(directUrl));
        domainRegistry.refreshDomain();

        assertTrue(domainRegistry.domainCache.containsKey(directUrl1));
        assertTrue(domainRegistry.domainCache.containsKey(directUrl2));
    }
@author <a href=mailto:orezsilence@163.com>zhangchengxi</a>
registry/registry-local/src/test/java/com/alipay/sofa/rpc/registry/local/DomainRegistryTest.java