### Question:
TracedHttpClient extends CloseableHttpClient { public static String getUrl(HttpUriRequest request) { return request.getURI().toString(); } TracedHttpClient(final CloseableHttpClient wrappedClient);  TracedHttpClient(
            final CloseableHttpClient wrappedClient,
            AWSXRayRecorder recorder); static HttpHost determineTarget(final HttpUriRequest request); static String getUrl(HttpUriRequest request); static String getUrl(HttpHost target, HttpRequest request); static void addRequestInformation(Subsegment subsegment, HttpRequest request, String url); @Override CloseableHttpResponse execute(
            final HttpHost target,
            final HttpRequest request,
            final HttpContext context); @Override CloseableHttpResponse execute(
            final HttpUriRequest request,
            final HttpContext context); @Override CloseableHttpResponse execute(
            final HttpUriRequest request); @Override CloseableHttpResponse execute(
            final HttpHost target,
            final HttpRequest request); @Override T execute(final HttpUriRequest request,
            final ResponseHandler<? extends T> responseHandler); @Override T execute(final HttpUriRequest request,
            final ResponseHandler<? extends T> responseHandler, final HttpContext context); @Override T execute(final HttpHost target, final HttpRequest request,
            final ResponseHandler<? extends T> responseHandler); @Override T execute(final HttpHost target, final HttpRequest request,
            final ResponseHandler<? extends T> responseHandler, final HttpContext context); @Override ClientConnectionManager getConnectionManager(); @Override HttpParams getParams(); @Override void close();  }### Answer:
@Test public void testGetUrlHttpUriRequest() { assertThat(TracedHttpClient.getUrl(new HttpGet("http: assertThat(TracedHttpClient.getUrl(new HttpGet("https: assertThat(TracedHttpClient.getUrl(new HttpGet("https: }
@Test public void testGetUrlHttpHostHttpRequest() { assertThat(TracedHttpClient.getUrl(new HttpHost("amazon.com"), new BasicHttpRequest("GET", "/")), is("http: assertThat(TracedHttpClient.getUrl(new HttpHost("amazon.com", -1, "https"), new BasicHttpRequest("GET", "/")), is("https: assertThat(TracedHttpClient.getUrl(new HttpHost("localhost", 8080), new BasicHttpRequest("GET", "/api/v1")), is("http: assertThat(TracedHttpClient.getUrl(new HttpHost("localhost", 8443, "https"), new BasicHttpRequest("GET", "/api/v1")), is("https: assertThat(TracedHttpClient.getUrl(new HttpHost("amazon.com", -1, "https"), new BasicHttpRequest("GET", "https: }