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

    ByteBuf releasedBuffer = releasedBuffer();
    releasedBuffer.internalNioBuffer(releasedBuffer.readerIndex(), 1);
}