@Test
public void testExecuteSuccessAtFirstAttempt() throws Exception {

    when(mockResponse.getStatusLine()).thenReturn(HTTP_200_STATUSLINE);
    when(httpClient.execute(eq(HTTP_HOST), eq(request), eq(httpClientContext))).thenReturn(mockResponse);
    final CloseableHttpResponse response = client.execute(request);
    assertThat(response, notNullValue());
    assertThat(response, sameInstance(mockResponse));
    verifyPrivate(client).invoke("execute", request, 0);
}