@Test
    void verifyMonitorError() throws Throwable {
        val memcached = mock(MemcachedClientIF.class);
        when(memcached.getUnavailableServers()).thenThrow(new RuntimeException("error"));
        when(memcached.getAvailableServers()).thenThrow(new RuntimeException("error"));
        val client = mock(ObjectPool.class);
        when(client.borrowObject()).thenReturn(memcached);
        val indicator = new MemcachedHealthIndicator(client, 1, 1);
        val health = indicator.health();
        assertEquals(Status.DOWN, health.getStatus());
    }
This is {@link MemcachedHealthIndicatorTests}.

@author Misagh Moayyed
@since 4.2.0
@deprecated Since 7.0.0
support/cas-server-support-memcached-monitor/src/test/java/org/apereo/cas/monitor/MemcachedHealthIndicatorTests.java