FatReader implements BlockDevice { @Override public String toString() { return this.getClass().getSimpleName() + "(" + reader + ")"; } FatReader(final WindowReader reader); @Override long getSize(); @Override void read(final long devOffset, final ByteBuffer dest); @Override void write(long devOffset, ByteBuffer src); @Override void flush(); @Override int getSectorSize(); @Override void close(); @Override boolean isClosed(); @Override String toString(); @Override boolean isReadOnly();  }
@Test public void testToString() throws Exception { assertTrue(fat.toString().contains(fat.getClass().getSimpleName())); assertTrue(fat.toString().contains(reader.toString())); }