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

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