### Question:
SafeFiles { public static List<String> linesAll(Path file) { return lines(file, stream -> stream.collect(toImmutableList())); } private  SafeFiles(); static List<Path> listAll(Path dir); static T list(Path dir, Function<Stream<Path>, T> function); static List<Path> walkAll(Path dir); static List<Path> walkAll(Path dir, int maxDepth, FileVisitOption... options); static T walk(Path dir, int maxDepth, Function<Stream<Path>, T> function, FileVisitOption... options); static List<String> linesAll(Path file); static T lines(Path file, Function<Stream<String>, T> function);  }### Answer:
@Test public void test_linesAll() { assertThat(SafeFiles.linesAll(tmpDir.resolve(PATH3))).containsExactly("HELLO"); }