@Override
    public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
        this.applicationEventPublisher = applicationEventPublisher;
        initDynamicConfig();
    }
@Test
    public void test() {
        MockitoAnnotations.openMocks(this);
        try (final MockedStatic<PluginConfigManager> pluginConfigManagerMockedStatic = Mockito.mockStatic(PluginConfigManager.class)){
            pluginConfigManagerMockedStatic.when(() -> PluginConfigManager.getPluginConfig(DynamicConfiguration.class))
                    .thenReturn(new DynamicConfiguration());
            final SpringEventPublisher springEventPublisher = new SpringEventPublisher();
            springEventPublisher.setApplicationEventPublisher(applicationEventPublisher);
            final OriginConfigCenterDisableListenerTest originConfigCenterDisableListenerTest = new OriginConfigCenterDisableListenerTest();
            final RefreshNotifier refreshNotifier = originConfigCenterDisableListenerTest.checkConfigListeners();
            refreshNotifier.refresh(new DynamicConfigEvent("id", "group", "config", DynamicConfigEventType.INIT));
            Mockito.verify(applicationEventPublisher, Mockito.times(0)).publishEvent(Mockito.any());
            refreshNotifier.refresh(new DynamicConfigEvent("id", "group", "config", DynamicConfigEventType.CREATE));
            Mockito.verify(applicationEventPublisher, Mockito.times(1)).publishEvent(Mockito.any());
            originConfigCenterDisableListenerTest.getListeners().clear();
        }
    }