@Test
public void testReadByte() {

    byte[] bytes = new byte[] {12, 23, 34, 45, 56};
    ByteBuf buf = Unpooled.wrappedBuffer(bytes);
    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf(buf);
    byte b = compositeByteBuf.readByte();
    Assert.assertTrue(b == 12);
    Assert.assertTrue(compositeByteBuf.readableBytes() == 4);
}