@Override
    public ByteBuf slice() {
        return slice(readerIndex, readableBytes());
    }
@Test
    public void testSliceRelease() {
        ByteBuf buf = newBuffer(8);
        assertEquals(1, buf.refCnt());
        assertTrue(buf.slice().release());
        assertEquals(0, buf.refCnt());
    }