// Test if we can enter TLS mode again.
//// Send StartTLS request.
handler.readBuf.clear();
IoBuffer buf = IoBuffer.allocate(1);
buf.put((byte) '.');
buf.flip();
session.write(buf).awaitUninterruptibly();
//// Wait for StartTLS response.
waitForResponse(handler, 1);