@Test
    void verifyServiceTicketCount() {
        val ticketRegistry = mock(TicketRegistry.class);
        when(ticketRegistry.sessionCount()).thenReturn(1L);
        when(ticketRegistry.serviceTicketCount()).thenReturn(10L);

        val indicator = new TicketRegistryHealthIndicator(new DirectObjectProvider<>(ticketRegistry), 1, 1);
        val health = indicator.getHealth(true);
        assertEquals(Health.status("WARN").build().getStatus(), health.getStatus());
    }
This is {@link TicketRegistryHealthIndicatorTests}.

@author Misagh Moayyed
@since 6.2.0
core/cas-server-core-monitor/src/test/java/org/apereo/cas/monitor/TicketRegistryHealthIndicatorTests.java