@Test
public void sameObjectForSameThread() throws InterruptedException {

  Configuration mockConfiguration = Mockito.mock(Configuration.class);
  RestClientManager clientManager = new RestClientManager(mockConfiguration);
  Client client1 = clientManager.getClient(null);
  Client client2 = clientManager.getClient(null);
  Assert.assertTrue(client1==client2);
  Assert.assertTrue(client1!=null);
}