private ApplicationConfigCache() {
    }
@Test
    public void testApplicationConfigCache() throws NoSuchFieldException, IllegalAccessException {
        ApplicationConfigCache applicationConfigCache = ApplicationConfigCache.getInstance();
        Assertions.assertEquals(applicationConfigCache.getInstance().getClass(), ApplicationConfigCache.class);
        PluginData pluginData = new PluginData();
        pluginData.setEnabled(true);
        pluginData.setConfig("{\"register\" : \"localhost:2181\"}");
        MotanRegisterConfig motanRegisterConfig = GsonUtils.getInstance().fromJson(pluginData.getConfig(), MotanRegisterConfig.class);
        applicationConfigCache.init(motanRegisterConfig);
        Field field1 = applicationConfigCache.getClass().getDeclaredField("registryConfig");
        field1.setAccessible(true);
        RegistryConfig registryConfig = (RegistryConfig) field1.get(applicationConfigCache);
        Assertions.assertEquals(registryConfig.getId(), "shenyu_motan_proxy");
        Field field2 = applicationConfigCache.getClass().getDeclaredField("protocolConfig");
        field2.setAccessible(true);
        ProtocolConfig protocolConfig = (ProtocolConfig) field2.get(applicationConfigCache);
        Assertions.assertEquals(protocolConfig.getId(), "motan2");
    }