@Test
    public void testNotFound() {
        Authenticator authenticator = new RestAuthenticator("http://localhost:" + PORT + "?r=notfound");
        val credentials = new UsernamePasswordCredentials(GOOD_USERNAME, PASSWORD);
        authenticator.validate(new CallContext(MockWebContext.create(), new MockSessionStore()), credentials);
        val profile = (RestProfile) credentials.getUserProfile();
        assertNull(profile);
    }
Tests {@link RestAuthenticator}.

@author Jerome Leleu
@since 2.1.0
pac4j-http/src/test/java/org/pac4j/http/credentials/authenticator/RestAuthenticatorIT.java