@Test
public void testDynamicCompositeByteBuf4() {

    ByteBuf buf1 = Unpooled.wrappedBuffer("hello1".getBytes());
    ByteBuf buf2 = Unpooled.wrappedBuffer("hello222".getBytes());
    ByteBuf buf3 = Unpooled.wrappedBuffer("hello33333".getBytes());
    ByteBuf[] bufs = new ByteBuf[] {buf1, buf2, buf3};
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(bufs, 1, 2);
    Assert.assertTrue(compositeByteBuf.readableBytes() == buf2.readableBytes() + buf3.readableBytes());
}