@Test
    void verifyNoTicket() {
        val request = new MockHttpServletRequest();
        assertTrue(singleSignOnSessionStatusEndpoint.ssoStatus(null, request).getStatusCode().is4xxClientError());
        val response = new MockHttpServletResponse();
        val tgt = new MockTicketGrantingTicket("casuser");
        ticketGrantingTicketCookieGenerator.addCookie(request, response, tgt.getId());
        request.setCookies(response.getCookies());
        assertTrue(singleSignOnSessionStatusEndpoint.ssoStatus(null, request).getStatusCode().is4xxClientError());
    }
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