HttpClientHttpChannel implements HttpChannel { public void addHeader(String name, String value) throws IOException { request.addHeader(name, value); } HttpClientHttpChannel(HttpClient client, HttpUriRequest request); void setConnectionTimeout(int timeout); void setSocketTimeout(int timeout); void setHeader(String name, String value); void addHeader(String name, String value); void setContentType(String value); void setAccept(String value); void writeEntityWith(HttpEntityWriter httpEntityWriter); Response send();  }
@Test public void addHeaderShouldSetHttpClientRequestHeader() throws IOException { toTest.addHeader("name", "value"); verify(request).addHeader("name", "value"); }