FatReader implements BlockDevice { @Override public boolean isClosed() { return isClosed; } 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 testisClosed() throws Exception { assertFalse(fat.isClosed()); fat.close(); assertTrue(fat.isClosed()); }