@Test
public void testReset() {

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