@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);
}