@Test(expected = AccountNotFoundException.class)
    public void authentFailed() {
        val credentials = new UsernamePasswordCredentials(BAD_USERNAME, PASSWORD);
        inMemoryProfileService.validate(new CallContext(null, null), credentials);
    }
Tests the {@link InMemoryProfileService}.

@author Elie Roux
@since 2.1.0
pac4j-core/src/test/java/org/pac4j/core/profile/service/InMemoryProfileServiceTests.java