### Question:
PassThroughRequestHandler implements RequestHandler<Principal> { @Override public Principal handle(HttpRequestContext request) throws NotAuthorizedException, InternalServerException { return value; } PassThroughRequestHandler(Principal value); @Override Principal handle(HttpRequestContext request);  }### Answer:
@Test public void testPassThroughHandlerWithValue() { String expected = "STRING"; PassThroughRequestHandler<String> handler = new PassThroughRequestHandler<String>(expected); String value = handler.handle(request); assertNotNull(value); assertEquals(expected, value); }