@Test
    public void testResolveDomain() {
        String mockKey = "mock";
        List<ProviderInfo> value = new ArrayList<>();
        domainRegistry.domainCache.put(mockKey, value);
        assertSame(value, domainRegistry.resolveDomain(mockKey));

        String local = "127.0.0.1";
        List<ProviderInfo> actual = domainRegistry.resolveDomain(local);
        assertEquals(1, actual.size());
        assertEquals(local, actual.get(0).getHost());
    }
@author <a href=mailto:orezsilence@163.com>zhangchengxi</a>
registry/registry-local/src/test/java/com/alipay/sofa/rpc/registry/local/DomainRegistryTest.java