"Didn't instantiate ServerCnxnFactory with NettyServerCnxnFactory!",
serverFactory instanceof NettyServerCnxnFactory);
NettyServerCnxnFactory nettyServerFactory = (NettyServerCnxnFactory) serverFactory;
final CountDownLatch channelLatch = new CountDownLatch(1);
CnxnChannelHandler channelHandler = nettyServerFactory.new CnxnChannelHandler() {
@Override
public void channelDisconnected(ChannelHandlerContext ctx,
ChannelStateEvent e) throws Exception {
LOG.info("Recieves channel disconnected event");
channelLatch.countDown();