@Test
public void testReadInt() {

    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf();
    ByteBuf buf = Unpooled.buffer(8);
    buf.writeInt(1);
    buf.writeInt(2);
    compositeByteBuf.addBuffer(buf);
    Assert.assertTrue(compositeByteBuf.readInt() == 1);
    Assert.assertTrue(compositeByteBuf.readInt() == 2);
}