### Question:
InternalHttpClient extends CloseableHttpClient implements Configurable { @Override public void close() { close(CloseMode.GRACEFUL); } InternalHttpClient(
            final HttpClientConnectionManager connManager,
            final HttpRequestExecutor requestExecutor,
            final ExecChainElement execChain,
            final HttpRoutePlanner routePlanner,
            final Lookup<CookieSpecFactory> cookieSpecRegistry,
            final Lookup<AuthSchemeFactory> authSchemeRegistry,
            final CookieStore cookieStore,
            final CredentialsProvider credentialsProvider,
            final RequestConfig defaultConfig,
            final List<Closeable> closeables); @Override RequestConfig getConfig(); @Override void close(); @Override void close(final CloseMode closeMode);  }### Answer:
@Test public void testClientClose() throws Exception { client.close(); Mockito.verify(closeable1).close(); Mockito.verify(closeable2).close(); }
@Test public void testClientCloseIOException() throws Exception { Mockito.doThrow(new IOException()).when(closeable1).close(); client.close(); Mockito.verify(closeable1).close(); Mockito.verify(closeable2).close(); }