@Test
        void verifyAuthenticateFailureNotFound() {
            assertNotEquals(0, ldapAuthenticationHandlers.size());
            assertThrowsWithRootCause(RuntimeException.class, AccountNotFoundException.class,
                () -> ldapAuthenticationHandlers.toList().forEach(
                    Unchecked.consumer(h -> h.authenticate(new UsernamePasswordCredential("bad", "bad"), mock(Service.class)))));
        }
Unit test for {@link LdapAuthenticationHandler}.

@author Marvin S. Addison
@author Misagh Moayyed
@since 4.0.0
support/cas-server-support-ldap/src/test/java/org/apereo/cas/authentication/AuthenticatedLdapAuthenticationHandlerTests.java