@Override
    public void loadConfiguration(NacosLoggingProperties loggingProperties) {
        String location = loggingProperties.getLocation();
        configurator.setLoggingProperties(loggingProperties);
        LoggerContext loggerContext = loadConfigurationOnStart(location);
        if (hasNoListener(loggerContext)) {
            addListener(loggerContext, location);
        }
    }
@Test
    void testLoadConfigurationStop() {
        LoggerContext loggerContext = (LoggerContext) LoggerFactory.getILoggerFactory();
        loggerContext.putObject(CoreConstants.RECONFIGURE_ON_CHANGE_TASK, new ReconfigureOnChangeTask());
        logbackNacosLoggingAdapter.loadConfiguration(loggingProperties);
        loggerContext.stop();
        verify(loggerContextListener).onReset(loggerContext);
        verify(loggerContextListener, never()).onStop(loggerContext);
        for (Logger each : loggerContext.getLoggerList()) {
            if (!"com.alibaba.nacos.client.naming".equals(each.getName())) {
                continue;
            }
            assertNotNull(each.getAppender("ASYNC-NAMING"));
        }
        assertTrue(loggerContext.getCopyOfListenerList().isEmpty());
    }