@Test
    void verifyAuthenticateFailure() {
        assertNotEquals(0, ldapAuthenticationHandlers.size());
        assertThrowsWithRootCause(UncheckedException.class, FailedLoginException.class,
            () -> ldapAuthenticationHandlers.toList().forEach(Unchecked.consumer(handler ->
                handler.authenticate(new UsernamePasswordCredential(getUsername(), getFailurePassword()), 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/BaseLdapAuthenticationHandlerTests.java