@Test
    void verifyOperation() {
        var results = singleSignOnSessionsEndpoint.getSsoSessions(new SingleSignOnSessionsEndpoint.SsoSessionsRequest()
            .withType(SingleSignOnSessionsEndpoint.SsoSessionReportOptions.ALL.getType()));
        assertFalse(results.isEmpty());
        assertTrue(results.containsKey("activeSsoSessions"));
        
        val sessions = (List) results.get("activeSsoSessions");
        assertEquals(1, sessions.size());

        val tgt = ((Map) sessions.getFirst())
            .get(SingleSignOnSessionsEndpoint.SsoSessionAttributeKeys.TICKET_GRANTING_TICKET_ID.getAttributeKey()).toString();
        results = singleSignOnSessionsEndpoint.destroySsoSession(tgt, new MockHttpServletRequest(), new MockHttpServletResponse());
        assertFalse(results.isEmpty());
        assertTrue(results.containsKey("status"));
        assertTrue(results.containsKey("ticketGrantingTicket"));

        results = singleSignOnSessionsEndpoint.destroySsoSessions(new SingleSignOnSessionsEndpoint.SsoSessionsRequest()
                .withType(SingleSignOnSessionsEndpoint.SsoSessionReportOptions.ALL.getType()),
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertEquals(1, results.size());
        assertTrue(results.containsKey("status"));
    }
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