@Test
public void testReadBytes() {

    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf();
    ByteBuf byteBuf1 = Unpooled.wrappedBuffer("hello".getBytes());
    compositeByteBuf.addBuffer(byteBuf1);
    byte[] bytes = new byte[byteBuf1.readableBytes()];
    compositeByteBuf.readBytes(bytes);
    String msg = new String(bytes);
    Assert.assertTrue(msg.equals("hello"));
}