if (connectFuture.getException() != null) {
throw connectFuture.getException();
}
connectFuture.getSession().getConfig().setUseReadOperation(true);
ReadFuture readFuture = connectFuture.getSession().read();
readFuture.awaitUninterruptibly();
if (readFuture.getException() != null) {
throw readFuture.getException();
}
IoBuffer message = (IoBuffer)readFuture.getMessage();
assertEquals(1, message.remaining());