@Test
    void verifyOperation() throws Throwable {
        publishEvent();
        Awaitility.await().untilAsserted(() -> assertFalse(casEventRepository.load().findAny().isEmpty()));

        mockMvc.perform(get("/actuator/events")
                .contentType(MediaType.APPLICATION_FORM_URLENCODED)
                .accept(MediaType.APPLICATION_JSON)
                .headers(HttpUtils.createBasicAuthHeaders("casuser", "Mellon"))
            )
            .andExpect(status().isOk());
    }
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