@Test
public void setConfigFromConfiguration() {

  Configuration mockConfiguration = Mockito.mock(Configuration.class);
  Mockito.when(mockConfiguration.getIntProperty(Mockito.eq(RestClientManager.HTTP_TASK_CONNECT_TIMEOUT),
                                                Mockito.eq(RestClientManager.DEFAULT_CONNECT_TIMEOUT))).thenReturn(200);
  Mockito.when(mockConfiguration.getIntProperty(Mockito.eq(RestClientManager.HTTP_TASK_READ_TIMEOUT),
                                                Mockito.eq(RestClientManager.DEFAULT_READ_TIMEOUT))).thenReturn(170);
  RestClientManager clientManager = new RestClientManager(mockConfiguration);
  Client client =  clientManager.getClient(null);
  Assert.assertEquals(client.getProperties().get("com.sun.jersey.client.property.readTimeout"),170);
  Assert.assertEquals(client.getProperties().get("com.sun.jersey.client.property.connectTimeout"),200);
}