AuthorizationHttpChannel implements HttpChannel { public void setSocketTimeout(int timeout) throws IOException { this.delegate.setSocketTimeout(timeout); } AuthorizationHttpChannel(HttpChannel delegate, Authorization authorization, MethodType methodType, String url, Charset charset, Map<String, EntityParamExtractor> entityParamExtrators); Response send(); void setContentType(String contentType); void writeEntityWith(HttpEntityWriter httpEntityWriter); void addHeader(String name, String value); void setHeader(String name, String value); void setAccept(String value); void setSocketTimeout(int timeout); void setConnectionTimeout(int timeout);  }
@Test public void setSocketTimeoutShouldDelegate() throws IOException { toTest.setSocketTimeout(123); verify(delegate).setSocketTimeout(123); }