@Test(expected = IndexOutOfBoundsException.class)
public void testReadByteThrowException() {

    DynamicCompositeByteBuf compositeByteBuf = new DynamicCompositeByteBuf();
    compositeByteBuf.readByte();
}