@Test
    void verifyDeleteFails() throws Throwable {
        val registry = mock(TicketRegistry.class);
        when(registry.getTickets(any(Predicate.class))).thenReturn(Stream.of(new MockTicketGrantingTicket("casuser")));
        when(registry.deleteTicket(anyString())).thenThrow(new RuntimeException());

        val results = new SingleSignOnSessionsEndpoint(new DirectObjectProvider<>(registry), applicationContext,
            casProperties, new DirectObjectProvider<>(defaultSingleLogoutRequestExecutor)).destroySsoSessions(
            new SingleSignOnSessionsEndpoint.SsoSessionsRequest()
                .withType(SingleSignOnSessionsEndpoint.SsoSessionReportOptions.DIRECT.getType()),
            new MockHttpServletRequest(), new MockHttpServletResponse());
        assertFalse(results.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