@Test
public void testShutdown() throws IOException {

    when(asyncClient.isRunning()).thenReturn(true);
    Unirest.config()
            .httpClient(new ApacheClient(httpc, null, clientManager))
            .asyncClient(new ApacheAsyncClient(asyncClient, null, manager, asyncMonitor));
    Unirest.shutDown();
    verify(httpc).close();
    verify(clientManager).close();
    verify(asyncClient).close();
    verify(asyncMonitor).interrupt();
}