@BeforeClass
    public static void setUp() {
        val webServer = new WebServer(PORT)
            .defineResponse("ok", new ServerResponse(NanoHTTPD.Response.Status.OK, "application/json",
                "{ 'id': '" + ID + "', roles: [\"" + ROLE + "\"] }"))
            .defineResponse("notfound", new ServerResponse(NanoHTTPD.Response.Status.NOT_FOUND, "plain/text", "Not found"))
            .defineResponse("pe", new ServerResponse(NanoHTTPD.Response.Status.OK, "plain/text", "bad"));
        webServer.start();
    }
Tests {@link RestAuthenticator}.

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