HttpClientHttpChannel implements HttpChannel { public void setConnectionTimeout(int timeout) throws IOException { HttpConnectionParams.setConnectionTimeout(request.getParams(), timeout); } 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 setConnetionTimeoutShouldSetHttpClientRequestParams() throws IOException { HttpParams params = mock(HttpParams.class); when(request.getParams()).thenReturn(params); toTest.setConnectionTimeout(123); verify(params).setIntParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, 123); }