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

    ByteBuf buffer = buffer(8);
    try {
        releasedBuffer().writeBytes(buffer);
    } finally {
        buffer.release();
    }
}