private void publishEvent() {
        val failureEvent = new CasAuthenticationTransactionFailureEvent(this,
            CollectionUtils.wrap("error", new FailedLoginException()),
            CollectionUtils.wrap(CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword()), null);
        applicationContext.publishEvent(failureEvent);
        val successEvent = new CasAuthenticationTransactionSuccessfulEvent(this,
            CoreAuthenticationTestUtils.getCredentialsWithSameUsernameAndPassword(), null);
        applicationContext.publishEvent(successEvent);
    }
This is {@link CasEventsReportEndpointTests}.

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