### Question:
UtilFile { public static boolean exists(String path) { return path != null && new File(path).exists(); } private  UtilFile(); static String removeExtension(String file); static String normalizeExtension(String file, String extension); static String getExtension(String file); static String getExtension(File file); static List<File> getFiles(File directory); static List<File> getFilesByExtension(File path, String extension); static List<File> getFilesByName(File path, String name); static void deleteFile(File file); static boolean exists(String path); static boolean isFile(String path); static boolean isType(File file, String extension);  }### Answer:
@Test void testExists() throws IOException { assertFalse(UtilFile.exists(null)); final Path folder = Files.createTempDirectory("temp"); final Path file = Files.createTempFile(folder, "temp", ".tmp"); assertTrue(UtilFile.exists(folder.toFile().getPath())); assertTrue(UtilFile.exists(file.toFile().getPath())); Files.delete(file); Files.delete(folder); assertFalse(UtilFile.exists(folder.toFile().getPath())); assertFalse(UtilFile.exists(file.toFile().getPath())); }