@Test
public void testClose()
{

    HttpClient mockClient = mock(HttpClient.class);
    ScheduledExecutorService retryExecutor = mock(ScheduledExecutorService.class);
    balancingHttpClient = new BalancingHttpClient(serviceBalancer, mockClient, new BalancingHttpClientConfig(), retryExecutor);
    balancingHttpClient.close();
    verify(retryExecutor).shutdown();
    verify(retryExecutor).shutdownNow();
    verifyNoMoreInteractions(retryExecutor);
    verify(mockClient).close();
    verifyNoMoreInteractions(mockClient, serviceBalancer);
}