@Test
    void verifyDelete() throws Throwable {
        var results = singleSignOnSessionsEndpoint.destroySsoSessions(
            new SingleSignOnSessionsEndpoint.SsoSessionsRequest().withType(null),
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertEquals(HttpStatus.BAD_REQUEST.value(), results.get("status"));
        results = singleSignOnSessionsEndpoint.destroySsoSessions(
            new SingleSignOnSessionsEndpoint.SsoSessionsRequest().withUsername(CoreAuthenticationTestUtils.CONST_USERNAME),
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertFalse(results.isEmpty());

        results = singleSignOnSessionsEndpoint.destroySsoSession("unknown-ticket",
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertTrue(results.containsKey("status"));
        assertTrue(results.containsKey("ticketGrantingTicket"));

        val authResult = CoreAuthenticationTestUtils.getAuthenticationResult();
        val tgt = centralAuthenticationService.createTicketGrantingTicket(authResult);
        assertNotNull(tgt);
        results = singleSignOnSessionsEndpoint.destroySsoSessions(
            new SingleSignOnSessionsEndpoint.SsoSessionsRequest().withType(SingleSignOnSessionsEndpoint.SsoSessionReportOptions.ALL.getType()),
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertFalse(results.isEmpty());
        assertNotNull(singleSignOnSessionsEndpoint.toString());
        assertTrue(ticketRegistry.getTickets(ticket -> ticket.getId().equals(tgt.getId()) && !ticket.isExpired()).findAny().isEmpty());
    }
This is {@link SingleSignOnSessionsEndpointTests}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-reports/src/test/java/org/apereo/cas/web/report/SingleSignOnSessionsEndpointTests.java