CharSourceSupplierHttpClientImpl implements CharSourceSupplier { @Override public void close() throws IOException { client.close(); } CharSourceSupplierHttpClientImpl(@Nonnull RobotsConfig config, Client client); @Override CharSource get(final URI resource); @Override void close();  }
@Test public void whenClose_thenClientClose() throws IOException { instance.close(); verify(client).close(); }