@Test
    void verifyEventRepositoryHasOneEventOnly() {
        assertRepositoryIsEmpty();
        val event = new CasTicketGrantingTicketDestroyedEvent(this,
            new MockTicketGrantingTicket("casuser"), ClientInfoHolder.getClientInfo());
        publishEventAndWaitToProcess(event);
        assertNotNull(casEventRepository.load());
        val resultingCount = casEventRepository.load().count();
        assertEquals(1, resultingCount);
    }
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