@Test
    void verifyOperation() {
        val event = new ApplicationReadyEvent(
            mock(SpringApplication.class), ArrayUtils.EMPTY_STRING_ARRAY,
            applicationContext, Duration.ofSeconds(1));
        assertDoesNotThrow(() -> applicationContext.publishEvent(event));
    }
This is {@link CasWebApplicationAutoConfigurationTests}.

@author Misagh Moayyed
@since 6.6.0
webapp/cas-server-webapp-init/src/test/java/org/apereo/cas/config/CasWebApplicationAutoConfigurationTests.java