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

    // make it fall back to HTTP
    Mockito.when(mockHttpRequest.execute())
        .thenThrow(new ConnectException()) // server is not listening on 443
        .thenReturn(mockHttpResponse); // respond when connected through 80

    try (Response response =
        insecureHttpClient.get(new URL("https://insecure"), fakeRequest(null))) {
      // intentionally empty
    }

    verifyCapturedUrls("https://insecure", "http://insecure");

    Assert.assertEquals(2, httpHeadersCaptor.getAllValues().size());
    Assert.assertEquals(
        "Basic ZmFrZS11c2VybmFtZTpmYWtlLXNlY3JldA==",
        httpHeadersCaptor.getAllValues().get(0).getAuthorization());
    Assert.assertNull(httpHeadersCaptor.getAllValues().get(1).getAuthorization());
  }