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

    // create an empty temp directory
    File emptyDir = tempFolder.newFolder("subfolder");
    Utils.generateDirectoryHash(null, emptyDir.getAbsolutePath(), "");
    Assert.fail("Expected an IOException as the directory is empty");
}