mockProcessor, mockReconnectionManager, mockRateTracker
);
BasicClient client = new BasicClient(clientBase, executorService);
final CountDownLatch latch = new CountDownLatch(1);
when(mockHttpHosts.nextHost())
.thenReturn("http://somehost.com");
when(mockClient.execute(any(HttpUriRequest.class)))
.thenReturn(mockResponse)
.thenReturn(mockResponse)
.thenThrow(new IOException())