@Override
    public ByteBuf writeBytes(byte[] src, int srcIndex, int length) {
        ensureWritable(length);
        setBytes(writerIndex, src, srcIndex, length);
        writerIndex += length;
        return this;
    }
@Test
    public void testSliceReadGatheringByteChannelMultipleThreads() throws Exception {
        final byte[] bytes = new byte[8];
        random.nextBytes(bytes);

        final ByteBuf buffer = newBuffer(8);
        buffer.writeBytes(bytes);
        try {
            testReadGatheringByteChannelMultipleThreads(buffer, bytes, true);
        } finally {
            buffer.release();
        }
    }