public Response get(URL url, Request request) throws IOException {
    return call(HttpMethods.GET, url, request);
  }
@Test
  public void testGet_secureClientOnNonListeningServerAndNoPortSpecified() throws IOException {
    FailoverHttpClient httpClient = newHttpClient(false, false);

    Mockito.when(mockHttpRequest.execute())
        .thenThrow(new ConnectException("my exception")); // server not listening on 443

    try (Response response = httpClient.get(new URL("https://insecure"), fakeRequest(null))) {
      Assert.fail("Should not fall back to HTTP if secure client");
    } catch (ConnectException ex) {
      Assert.assertEquals("my exception", ex.getMessage());

      verifyCapturedUrls("https://insecure");

      Mockito.verify(mockHttpRequest, Mockito.times(1)).execute();
      Mockito.verifyNoInteractions(mockInsecureHttpRequest, logger);
    }
  }