FatReader implements BlockDevice { @Override public int getSectorSize() throws IOException { ensureOpen(); return DEFAULT_SECTOR_SIZE; } 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(expected = IllegalStateException.class) public void testgetSectorSize() throws Exception { assertEquals(512, fat.getSectorSize()); fat.close(); fat.getSectorSize(); }