@Test
public void testReadUnsignedShort() {

    ByteBuf buf = Unpooled.buffer(8);
    buf.writeShort(65536);
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(buf);
    int s = compositeByteBuf.readUnsignedShort();
    Assert.assertTrue(s == 0);
}