@Test(expected = IOException.class)
public void testReadFileNoFile() throws Exception {

    File rootDir = tempFolder.getRoot().getAbsoluteFile();
    Utils.readFile(new File(rootDir, "temp.txt"));
    Assert.fail("Expected an IOException as the file does not exist");
}