@Test
    void verifyObserveWarnServiceTicketsExceeded() {
        addTicketsToRegistry(this.defaultRegistry, 1, 10);
        val monitor = new TicketRegistryHealthIndicator(new DirectObjectProvider<>(defaultRegistry), 5, 0);
        val status = monitor.health();
        assertEquals("WARN", status.getStatus().getCode());
    }
Unit test for {@link TicketRegistryHealthIndicator} class.

@author Marvin S. Addison
@since 3.5.0
core/cas-server-core-monitor/src/test/java/org/apereo/cas/monitor/SessionHealthIndicatorTests.java