### Question:
FileUtils { public static List<String> readLines(File file) throws Exception { if (!exists(file)) { return Collections.emptyList(); } return Files.readAllLines(file.toPath()); } private  FileUtils(); static boolean isValidFileName(String name); static synchronized File getDefaultTempDir(); static synchronized void maybeDeleteDefaultTempDir(); static File createTmpDir(); static File createTmpDir(boolean addHook); static void mkDir(File dir); static void removeDir(File d); static void delete(File f); static void delete(File f, boolean inShutdown); static File createTempFile(String prefix, String suffix); static File createTempFile(String prefix, String suffix, File parentDir,
                               boolean deleteOnExit); static List<File> getFilesUsingSuffix(File dir, final String suffix); static List<File> getFilesRecurseUsingSuffix(File dir, final String suffix); static List<File> getFiles(File dir, final String pattern); static List<String> readLines(File file); static boolean exists(File file); static String stripPath(String name);  }### Answer:
@Test public void testReadLines() throws Exception { String basedir = System.getProperty("basedir"); if (basedir == null) { basedir = new File(".").getCanonicalPath(); } Optional<Path> p = Files.find(Paths.get(basedir), 20, (path, attrs) -> path.getFileName().endsWith("FileUtilsTest.java")) .findFirst(); assertTrue(p.isPresent()); List<String> lines = FileUtils.readLines(p.get().toFile()); assertFalse(lines.isEmpty()); }