### Question:
MMapBuffer implements BufferResource { @Override public void close() throws IOException { if (openBuffersTracker != null) { openBuffersTracker.beforeMMapBufferClosed(this); } if (address != 0) { if (munmap(address, memory.length()) != 0) throw new IOException("munmap failed [Errno " + errno() + "]"); } } MMapBuffer(File file, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(File file, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(Path path, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(Path path, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(RandomAccessFile raf, File file, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(RandomAccessFile raf, Path path, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order);  MMapBuffer(RandomAccessFile raf, File file, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order, boolean closeFile);  MMapBuffer(RandomAccessFile raf, Path path, long offset, long length, FileChannel.MapMode mapMode, ByteOrder order, boolean closeFile); void advise(long position, long length); void sync(long position, long length); void mlock(long position, long length); void munlock(long position, long length); void mincore(long position, long length, DirectMemory direct); @Override void close(); DirectMemory memory(); @Deprecated static boolean isTrackingEnabled(); @Deprecated static void madviseDontNeedTrackedBuffers(); static final int PAGE_SIZE; }### Answer:
@Test(expected = FileNotFoundException.class) public void testReadNoFile() throws IOException { File f = File.createTempFile("asdf", ""); f.delete(); MMapBuffer buffer = new MMapBuffer(f, FileChannel.MapMode.READ_ONLY, ByteOrder.nativeOrder()); buffer.close(); }