private void assertRepositoryIsEmpty() {
        clearEventRepository();
        assertTrue(casEventRepository.load().findAny().isEmpty());
    }
Verify that the casEventRepository doesn't have any events in it.
core/cas-server-core-events/src/test/java/org/apereo/cas/support/events/CasAuthenticationEventListenerTests.java