SimpleLeakAwareCompositeByteBuf extends WrappedCompositeByteBuf { @Override public ByteBuf slice() { return newLeakAwareByteBuf(super.slice()); } SimpleLeakAwareCompositeByteBuf(CompositeByteBuf wrapped, ResourceLeakTracker<ByteBuf> leak); @Override boolean release(); @Override boolean release(int decrement); @Override ByteBuf order(ByteOrder endianness); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf asReadOnly();  }
@Test public void testWrapSlice() { assertWrapped(newBuffer(8).slice()); }
@Test public void testWrapSlice2() { assertWrapped(newBuffer(8).slice(0, 1)); }