@Test(expected = ReadOnlyBufferException.class)
public void testSetByte() {

    ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
    try {
        buf.setByte(0, 1);
    } finally {
        buf.release();
    }
}