@Test(expected = BadCredentialsException.class)
    public void authentFailed() {
        val ldapProfileService = new LdapProfileService(connectionFactory, authenticator, LdapServer.BASE_PEOPLE_DN);
        val credentials = new UsernamePasswordCredentials(BAD_USERNAME, PASSWORD);
        ldapProfileService.validate(null, credentials);
    }
Tests the {@link LdapProfileService}.

@author Jerome Leleu
@since 1.8.0
pac4j-ldap/src/test/java/org/pac4j/ldap/profile/service/LdapProfileServiceTests.java