@Test
    void verifyObserveWarn() {
        val warn = casProperties.getMonitor().getWarn();
        val monitor = new AbstractCacheHealthIndicator(
            warn.getEvictionThreshold(),
            warn.getThreshold()
        ) {
            @Override
            protected SimpleCacheStatistics[] getStatistics() {
                return statsArray(new SimpleCacheStatistics(199, 200, 100));
            }
        };
        val status = monitor.health().getStatus();
        assertEquals("WARN", status.getCode());
    }
Unit test for {@link AbstractCacheHealthIndicator}.

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