}
@Test
public void testHandleIOExceptionOnConnection() throws IOException {
ClientBase clientBase = new ClientBase("name",
mock, new HttpHosts("http://hi"), new RawEndpoint("/endpoint", HttpConstants.HTTP_GET), mockAuth,
mockProcessor, mockReconnectionManager, mockRateTracker
);
when(mockConnection.connect(any(HttpUriRequest.class)))
.thenThrow(new IOException());