@Test(expected = AccountNotFoundException.class)
    public void authentFailed() {
        val couchProfileService = new CouchProfileService(couchDbConnector);
        couchProfileService.setPasswordEncoder(PASSWORD_ENCODER);
        val credentials = new UsernamePasswordCredentials(BAD_USERNAME, PASSWORD);
        couchProfileService.validate(null, credentials);
    }
Tests the {@link CouchProfileService}.

@author Elie Roux
@since 2.0.0
pac4j-couch/src/test/java/org/pac4j/couch/profile/service/CouchProfileServiceTests.java