### Question:
FSCheckpointManager implements CheckpointStore { @Override public boolean fileExists(String filePath) throws IOException { return getFullyQualifiedPath(filePath).exists(); } FSCheckpointManager(File rootPath); @Override List<String> listFiles(String filePath); @Override boolean fileExists(String filePath); @Override long getFileLength(String filePath); @Override InputStream openInputStream(String filePath); @Override OutputStream openOutputStream(String filePath); @Override void rename(String srcPath, String destPath); @Override void deleteRecursively(String srcPath); @Override void delete(String srcPath); @Override void createDirectories(String srcPath); @Override void close();  }### Answer:
@Test public void testFileExists() throws Exception { File testDir = new File(new File(rootDir, runtime.getMethodName()), "test"); testDir.mkdirs(); assertTrue(cm.fileExists(runtime.getMethodName() + "/test")); assertFalse(cm.fileExists(runtime.getMethodName() + "/test2")); }