你好：
我有一个疑问，当Registry调用destroy后不会去清除AbstractRegistryFactory中的缓存，导致以同样的参数再次获取的时候得到了一个已经无法使用的Registry。这个时设计的时候就认为不该这么使用吗？
Assertions.assertEquals(registry1, registry2);
    }
    /**
     * Registration center address `dubbo` does not resolve
     */
    
    public void testRegistryFactoryIpCache() throws Exception {
        Registry registry1 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalAddress().getHostName() + ":2233"));
        Registry registry2 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalAddress().getHostAddress() + ":2233"));
        Assertions.assertEquals(registry1, registry2);
    }
    @Test
    public void testRegistryFactoryGroupCache() throws Exception {
        Registry registry1 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":2233?group=aaa"));
        Registry registry2 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":2233?group=bbb"));
        Assertions.assertNotSame(registry1, registry2);
    }
    @Test
    public void testDestroyAllRegistries() {
        Registry registry1 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":8888?group=xxx"));
        Registry registry2 = registryFactory.getRegistry(URL.valueOf("dubbo://" + NetUtils.getLocalHost() + ":9999?group=yyy"));
        Collection<Registry> registries = AbstractRegistryFactory.getRegistries();
        Assertions.assertTrue(registries.contains(registry1));
        Assertions.assertTrue(registries.contains(registry2));
        AbstractRegistryFactory.destroyAll();
        Assertions.assertFalse(registries.contains(registry1));
        Assertions.assertFalse(registries.contains(registry2));
    }
}