SevenZipReader implements SeekableByteChannel { @Override public String toString() { return this.getClass().getSimpleName() + "(" + reader + ")"; } SevenZipReader(final WindowReader reader); @Override int read(final ByteBuffer dst); @Override int write(ByteBuffer src); @Override long position(); @Override SeekableByteChannel position(long newPosition); @Override long size(); @Override SeekableByteChannel truncate(long size); @Override boolean isOpen(); @Override void close(); @Override String toString();  }
@Test public void testToString() throws Exception { assertTrue(zip.toString().contains(zip.getClass().getSimpleName())); assertTrue(zip.toString().contains(reader.toString())); }