### Question:
TransportConnection extends Connection<Client> { @TimerJ public void close() { if (elasticClient != null) { elasticClient.close(); elasticClient = null; } } TransportConnection(ICredentials credentiasl, ConnectorClusterConfig config); @TimerJ void close(); @Override @TimerJ boolean isConnected(); @Override @TimerJ Client getNativeConnection();  }### Answer:
@Test public void testClose() throws Exception { Whitebox.setInternalState(transportConnection, "elasticClient", client); transportConnection.close(); verify(client, times(1)).close(); }