@Override
    public ByteBuf retainedDuplicate() {
        return duplicate().retain();
    }
@Test
    public void testRetainedDuplicateAfterRelease() {
        assertThrows(IllegalReferenceCountException.class, new Executable() {
            @Override
            public void execute() {
                releasedBuffer().retainedDuplicate();
            }
        });
    }