### Question:
FileUtils { public static String readFile(String path) throws IOException { byte[] encoded = Files.readAllBytes(Paths.get(path)); return new String(encoded, StandardCharsets.UTF_8); }  static int countLines(File filename); static String readLineAt(int pos, File filename); static int getHashcodeFromFileContent(String filepath); static String readFile(String path);  }### Answer:
@Test public void readTest() throws IOException { String data = FileUtils.readFile("src/test/resources/fileUtils.txt"); String expected = "a\nab\nabc\n\n\n\n\n\n\n\n\\n\n\n\n\n\ndfe\n\ntest"; assertEquals(expected, data); }