HttpURLConnectionHttpChannel implements HttpChannel { public void setConnectionTimeout(int timeout) throws IOException { con.setConnectTimeout(timeout); } 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 setConnectionTimeoutShouldSetItIntoHttpUrlConnection() throws IOException { toTest.setConnectionTimeout(123); verify(httpURLConnection).setConnectTimeout(123); }