@Test
public void testHasRemaining() {

   ByteBuf buffer = Unpooled.buffer(100, 100);
   NettyWritable writable = new NettyWritable(buffer);
   assertTrue(writable.hasRemaining());
   writable.put((byte) 0);
   assertTrue(writable.hasRemaining());
   buffer.writerIndex(buffer.maxCapacity());
   assertFalse(writable.hasRemaining());
}