HttpURLConnectionHttpChannel implements HttpChannel { public void setAccept(String value) throws IOException { setHeader("Accept", value); } HttpURLConnectionHttpChannel(HttpURLConnection con, MethodType methodType); void setSocketTimeout(int timeout); void setConnectionTimeout(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 setAcceptShouldSetItIntoHttpUrlConnection() throws IOException { toTest.setAccept("value"); verify(httpURLConnection).setRequestProperty("Accept", "value"); }