ClientSession session = client.connect("localhost", port).await().getSession();
AuthFuture authFuture = session.authPassword("smx", "smx");
CloseFuture closeFuture = session.close(false);
authLatch.countDown();
authFuture.await();
closeFuture.await();
assertNotNull(authFuture.getException());
assertTrue(closeFuture.isClosed());
}
@Test