@Override
    public void loadConfiguration(NacosLoggingProperties loggingProperties) {
        Log4j2NacosLoggingPropertiesHolder.setProperties(loggingProperties);
        String location = loggingProperties.getLocation();
        loadConfiguration(location);
    }
@Test
    void testLoadConfigurationWithWrongLocation() {
        assertThrows(IllegalStateException.class, () -> {
            System.setProperty("nacos.logging.config", "http://localhost");
            nacosLoggingProperties = new NacosLoggingProperties("classpath:nacos-log4j2.xml", System.getProperties());
            log4J2NacosLoggingAdapter = new Log4J2NacosLoggingAdapter();
            log4J2NacosLoggingAdapter.loadConfiguration(nacosLoggingProperties);
            verify(propertyChangeListener, never()).propertyChange(any());
        });
    }