IOUtils { public static String readFile(Path filePath, Charset charset) { return ExceptionUtils.uncheck(() -> new String(readAllBytes(filePath), charset)); } private  IOUtils(); static Path checkFile(Path filePath); static String readFile(Path filePath, Charset charset); static String getFileHashCode(Path filePath);  }
@Test public void checkReadFile() throws Exception { assertFalse("".equals(readFile(temporaryFile, StandardCharsets.UTF_8))); }