@Override
    public ByteBuf writeChar(int value) {
        writeShort(value);
        return this;
    }
@Test
    public void testWriteCharAfterRelease() {
        assertThrows(IllegalReferenceCountException.class, new Executable() {
            @Override
            public void execute() {
                releasedBuffer().writeChar(1);
            }
        });
    }