@Test
public void reusesWrapperForRequestsFromEquivalentHostsDefaultHttpsPort() throws Exception {

    ServiceWrapper wrapper = new NullWrapper();
    HttpUriRequest req1 = new HttpGet("https://foo.example.com/bar");
    HttpUriRequest req2 = new HttpGet("https://foo.example.com:443/baz");
    HttpResponse resp1 = resp;
    HttpResponse resp2 = new BasicHttpResponse(HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK");
    expect(mockFactory.getWrapperWithName(isA(String.class))).andReturn(wrapper);
    expect(mockBackend.execute(isA(HttpHost.class), isA(HttpRequest.class), isA(HttpContext.class)))
        .andReturn(resp1);
    expect(mockBackend.execute(isA(HttpHost.class), isA(HttpRequest.class), isA(HttpContext.class)))
        .andReturn(resp2);
    replayMocks();
    impl.execute(req1, ctx);
    impl.execute(req2, ctx);
    verifyMocks();
}