@Override public void channelActive(ChannelHandlerContext ctx) throws Exception { super.channelActive(ctx); assertQueueEmpty(queue); Assert.assertTrue("Should be writable", ctx.channel().isWritable()); }