@Test
public void testReadFile() throws Exception {

    // create a small temp file
    byte[] expectedData = "TheQuickBrownFox".getBytes();
    File tempFile = tempFolder.newFile("temp.txt");
    Path file = Paths.get(tempFile.getAbsolutePath());
    Files.write(file, expectedData);
    byte[] actualData = Utils.readFile(tempFile);
    Assert.assertArrayEquals(expectedData, actualData);
}