@Test
    void verifyOperation() throws Throwable {
        val initializer = mock(ServiceRegistryInitializer.class);
        val listener = new DefaultServiceRegistryInitializerEventListener(new DirectObjectProvider<>(initializer));
        assertDoesNotThrow(new Executable() {
            @Override
            public void execute() {
                listener.handleConfigurationModifiedEvent(new CasConfigurationModifiedEvent(this, true, null));
            }
        });
        assertDoesNotThrow(() -> listener.handleEnvironmentChangeEvent(new EnvironmentChangeEvent(Set.of())));
        assertDoesNotThrow(() -> listener.handleRefreshScopeRefreshedEvent(new RefreshScopeRefreshedEvent()));
    }
This is {@link DefaultServiceRegistryInitializerEventListenerTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-services-registry/src/test/java/org/apereo/cas/services/DefaultServiceRegistryInitializerEventListenerTests.java