@Test
    public void testParsingError() {
        val authenticator = new RestAuthenticator("http://localhost:" + PORT + "?r=pe");
        val credentials = new UsernamePasswordCredentials(GOOD_USERNAME, PASSWORD);
        TestsHelper.expectException(() -> authenticator.validate(
            new CallContext(MockWebContext.create(), new MockSessionStore()), credentials),
            TechnicalException.class, "com.fasterxml.jackson.core.JsonParseException: Unrecognized token 'bad': was expecting " +
                "('true', 'false' or 'null')\n at [Source: (String)\"bad\"; line: 1, column: 7]");
    }
Tests {@link RestAuthenticator}.

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