@Test
    void verifyCasRiskyAuthenticationDetectedEvent() {
        assertRepositoryIsEmpty();
        val event = new CasRiskyAuthenticationDetectedEvent(this,
            CoreAuthenticationTestUtils.getAuthentication(),
            CoreAuthenticationTestUtils.getRegisteredService(),
            new Object(), null);
        publishEventAndWaitToProcess(event);
        assertFalse(casEventRepository.load().findAny().isEmpty());
    }
This is {@link CasAuthenticationEventListenerTests}.

@author Misagh Moayyed
@since 5.3.0
core/cas-server-core-events/src/test/java/org/apereo/cas/support/events/CasAuthenticationEventListenerTests.java