@Test(expected = IllegalReferenceCountException.class)
public void testWriteBytesAfterRelease2() {

    ByteBuf buffer = copiedBuffer(new byte[8]);
    try {
        releasedBuffer().writeBytes(buffer, 1);
    } finally {
        buffer.release();
    }
}