@Test
public void testByteBuffer() {

   byte[] data = new byte[] {0, 1, 2, 3, 4};
   ByteBuf byteBuffer = Unpooled.wrappedBuffer(data);
   NettyReadable buffer = new NettyReadable(byteBuffer);
   ByteBuffer nioBuffer = buffer.byteBuffer();
   assertEquals(data.length, nioBuffer.remaining());
   for (int i = 0; i < data.length; i++) {
      assertEquals(data[i], nioBuffer.get());
   }
}