public static void notifyConfigChange(ConfigDataChangeEvent event) {
        if (DatasourceConfiguration.isEmbeddedStorage() && !EnvUtil.getStandaloneMode()) {
            return;
        }
        NotifyCenter.publishEvent(event);
    }
@Test
    void testConfigChangeNotify() throws InterruptedException {
        
        AtomicReference<ConfigDataChangeEvent> reference = new AtomicReference<>();
        
        NotifyCenter.registerToPublisher(ConfigDataChangeEvent.class, NotifyCenter.ringBufferSize);
        NotifyCenter.registerSubscriber(new Subscriber() {
            
            @Override
            public void onEvent(Event event) {
                reference.set((ConfigDataChangeEvent) event);
            }
            
            @Override
            public Class<? extends Event> subscribeType() {
                return ConfigDataChangeEvent.class;
            }
        });
        
        // nacos is standalone mode and use embedded storage
        EnvUtil.setIsStandalone(true);
        DatasourceConfiguration.setEmbeddedStorage(true);
        
        ConfigChangePublisher.notifyConfigChange(new ConfigDataChangeEvent("chuntaojun", "chuntaojun", System.currentTimeMillis()));
        Thread.sleep(2000);
        assertNotNull(reference.get());
        reference.set(null);
        
        // nacos is standalone mode and use external storage
        EnvUtil.setIsStandalone(true);
        DatasourceConfiguration.setEmbeddedStorage(false);
        ConfigChangePublisher.notifyConfigChange(new ConfigDataChangeEvent("chuntaojun", "chuntaojun", System.currentTimeMillis()));
        Thread.sleep(2000);
        assertNotNull(reference.get());
        reference.set(null);
        
        // nacos is cluster mode and use embedded storage
        EnvUtil.setIsStandalone(false);
        DatasourceConfiguration.setEmbeddedStorage(true);
        ConfigChangePublisher.notifyConfigChange(new ConfigDataChangeEvent("chuntaojun", "chuntaojun", System.currentTimeMillis()));
        Thread.sleep(2000);
        assertNull(reference.get());
        reference.set(null);
        
        // nacos is cluster mode and use external storage
        EnvUtil.setIsStandalone(false);
        DatasourceConfiguration.setEmbeddedStorage(false);
        ConfigChangePublisher.notifyConfigChange(new ConfigDataChangeEvent("chuntaojun", "chuntaojun", System.currentTimeMillis()));
        Thread.sleep(2000);
        assertNotNull(reference.get());
        reference.set(null);
        
    }