NettyConnection conn = new NettyConnection(channel, new MyListener(), false, false);
final int size = 1234;
HornetQBuffer buff = conn.createBuffer(size);
buff.writeByte((byte)0x00); // Netty buffer does lazy initialization.
Assert.assertEquals(size, buff.capacity());
}
private final class SimpleChannel implements Channel