### Question:
BaseMapper { public HttpRequest map(HttpRequest req, String internalURI) { String newUri = constructNewUri(req.getUri(), internalURI); req.setUri(newUri); log.debug("map the request to {}", newUri); return req; }  HttpRequest map(HttpRequest req, String internalURI);  }### Answer:
@Test public void when_request_map_it_to_internalUri() throws Exception { String internalUri = "http: HttpRequest req = new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "http: HttpRequest res = mapper.map(req, internalUri); assertEquals(res.getUri(), internalUri); }