@Test
    void verifyObserve() throws Throwable {
        val results = monitor.stream()
            .map(it -> (HealthIndicator) it.getContributor())
            .map(it -> it.health().getStatus()).toList();
        assertFalse(results.isEmpty());
        assertEquals(Status.UP, results.getFirst());
        pooledLdapConnectionFactoryHealthIndicatorListFactoryBean.destroy();
    }
Unit test for {@link PooledLdapConnectionFactoryHealthIndicator} class.

@author Marvin S. Addison
@since 4.0.0
support/cas-server-support-ldap-monitor/src/test/java/org/apereo/cas/monitor/PooledLdapConnectionFactoryHealthIndicatorTests.java