@Test
public void testSkip() throws IOException {

    ByteBuf buf = Unpooled.buffer(12);
    buf.writeInt(12);
    buf.writeInt(23);
    buf.writeInt(34);
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(buf);
    DynamicCompositeByteBufInputStream inputStream = new DynamicCompositeByteBufInputStream(compositeByteBuf);
    inputStream.skip(4);
    int i = inputStream.readInt();
    Assert.assertTrue(i == 23);
    compositeByteBuf.release();
    inputStream.close();
}