protected void assertFileContent(String expectedContent,File actual) throws IOException {
  String actualContent=new String(Files.readAllBytes(actual.toPath()),StandardCharsets.UTF_8);
  Assert.assertEquals(expectedContent,actualContent);
}

protected void assertFileContent ( String expectedContent , File actual ) throws IOException { String actualContent = new String ( Files . readAllBytes ( actual . toPath ( ) ) , StandardCharsets . UTF_8 ) ; Assert . assertEquals ( expectedContent , actualContent ) ; }
asserts that the given resource from the src / test / resources directory has the same content as the given file .
