FatReader implements BlockDevice { @Override public long getSize() throws IOException { ensureOpen(); return reader.length(); } 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 testGetSize() throws Exception { assertEquals(reader.length(), fat.getSize()); }