@Override
    public ByteBuf setByte(int index, int value) {
        throw new ReadOnlyBufferException();
    }
@Test
    public void testSetByte() {
        final ByteBuf buf = newBuffer(wrappedBuffer(new byte[8]));
        try {
            assertThrows(ReadOnlyBufferException.class, new Executable() {
                @Override
                public void execute() {
                    buf.setByte(0, 1);
                }
            });
        } finally {
            buf.release();
        }
    }