![image](https://user-images.githubusercontent.com/54169514/199922630-ba1b1417-e124-40b1-bac7-49158e2adbca.png)

文档上ApplicationConfig的enableFileCache属性默认true，但是在Dubbo3.1版本中，该属性似乎默认为null，导致mapping和元数据无法在本地缓存。

![image](https://user-images.githubusercontent.com/54169514/199923129-c99ea29b-45c5-40d1-bc21-1fbb44830fc7.png)

}
    @Test
    void testRegistry() throws Exception {
        ApplicationConfig application = new ApplicationConfig("app");
        RegistryConfig registry = new RegistryConfig();
        application.setRegistry(registry);
        assertThat(application.getRegistry(), sameInstance(registry));
        application.setRegistries(Collections.singletonList(registry));
        assertThat(application.getRegistries(), contains(registry));
        assertThat(application.getRegistries(), hasSize(1));
    }
    @Test
    void testMonitor() throws Exception {
        ApplicationConfig application = new ApplicationConfig("app");
        application.setMonitor(new MonitorConfig("monitor-addr"));
        assertThat(application.getMonitor().getAddress(), equalTo("monitor-addr"));
        application.setMonitor("monitor-addr");
        assertThat(application.getMonitor().getAddress(), equalTo("monitor-addr"));
    }
    @Test
    void testLogger() throws Exception {
        ApplicationConfig application = new ApplicationConfig("app");
        application.setLogger("log4j");
        assertThat(application.getLogger(), equalTo("log4j"));
    }
    @Test
    void testDefault() throws Exception {
        ApplicationConfig application = new ApplicationConfig("app");
        application.setDefault(true);
        assertThat(application.isDefault(), is(true));