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

    ByteBuf buffer = buffer();
    try {
        releasedBuffer().setBytes(0, buffer, 1);
    } finally {
        buffer.release();
    }
}