MemoryMapFileMock implements MemoryMappedFile { @Override public boolean exists() { return false; }  @Override boolean exists(); @Override ByteBuffer getBuffer(int size); @Override void close();  }
@Test public void exists() { assertFalse(memoryMappedFile.exists()); }