### Question:
GoogleHttpClientEdgeGridInterceptor implements HttpExecuteInterceptor { @Override public void intercept(HttpRequest request) throws IOException { try { binding.sign(request, request); } catch (RequestSigningException e) { throw new RuntimeException(e); } } GoogleHttpClientEdgeGridInterceptor(ClientCredential credential);  GoogleHttpClientEdgeGridInterceptor(ClientCredentialProvider clientCredentialProvider); @Override void intercept(HttpRequest request);  }### Answer:
@Test public void testInterceptorWithHeader() throws URISyntaxException, IOException, RequestSigningException { HttpRequestFactory requestFactory = createSigningRequestFactory(); URI uri = URI.create("https: HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(uri)); request.getHeaders().put("Host", "ignored-hostname.com"); request.getInterceptor().intercept(request); assertThat(request.getHeaders().containsKey("Host"), is(false)); assertThat(request.getHeaders().containsKey("host"), is(true)); assertThat((String) request.getHeaders().get("host"), equalTo("endpoint.net")); assertThat(request.getUrl().getHost(), equalTo("endpoint.net")); assertThat(request.getHeaders().getAuthorization(), not(isEmptyOrNullString())); }
@Test public void testInterceptor() throws URISyntaxException, IOException, RequestSigningException { HttpRequestFactory requestFactory = createSigningRequestFactory(); URI uri = URI.create("https: HttpRequest request = requestFactory.buildGetRequest(new GenericUrl(uri)); request.getInterceptor().intercept(request); assertThat(request.getHeaders().containsKey("host"), is(false)); assertThat(request.getUrl().getHost(), equalTo("endpoint.net")); assertThat(request.getHeaders().getAuthorization(), not(isEmptyOrNullString())); }