### Question:
Foo { public String read(final Path path) { try { return Files.readAllLines(path).get(0); } catch (final IOException e) { e.printStackTrace(); } return ""; }  String read(final Path path);  }### Answer:
@Test public void test01() { final Foo foo = new Foo(); final Path path = Paths.get(System.getProperty("user.dir"), "resources/in.txt"); assertEquals(foo.read(path), "Hello World"); }