@Test
    void verifyOperation() throws Throwable {
        val request = new MockHttpServletRequest();
        val response = new MockHttpServletResponse();

        val tgt = new MockTicketGrantingTicket("casuser");
        ticketRegistry.addTicket(tgt);
        ticketGrantingTicketCookieGenerator.addCookie(request, response, tgt.getId());
        request.setCookies(response.getCookies());
        val entity = singleSignOnSessionStatusEndpoint.ssoStatus(null, request);
        assertTrue(entity.getStatusCode().is2xxSuccessful());
        val body = Objects.requireNonNull((Map) entity.getBody());
        assertTrue(body.containsKey("principal"));
        assertTrue(body.containsKey("authenticationDate"));
        assertTrue(body.containsKey("ticketGrantingTicketCreationTime"));
        assertTrue(body.containsKey("ticketGrantingTicketPreviousTimeUsed"));
        assertTrue(body.containsKey("ticketGrantingTicketLastTimeUsed"));
    }
This is {@link SingleSignOnSessionStatusEndpointTests}.

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