@Test
public void testGetHexDigest() throws FileNotFoundException,
 URISyntaxException, IOException, NoSuchAlgorithmException {

lean dataTested = false;
 (File file : AllCoreTest
etFilesFromResourceDir(AllCoreTest.TEST_DATA_ROOT)) {
 JavaDigestValue apacheValue = JavaDigestValue.getInstance(
  DigestAlgorithm.MD5,
  DigestUtils.md5(new FileInputStream(file)));
 JavaDigestValue testValue = JavaDigestValue.getInstance(
  DigestAlgorithm.MD5, file);
 JavaDigestValue testSha1Value = JavaDigestValue.getInstance(
  DigestAlgorithm.SHA1, file);
 assertEquals(
  "apacheValue.hexDigest() and testValue.hexDigest() should be equal",
  apacheValue.getHexDigest(), testValue.getHexDigest());
 assertFalse(
  "apacheValue.hexDigest() and testSha1Value.hexDigest() shouldn't be equal",
  apacheValue.getHexDigest().equals(
   testSha1Value.getHexDigest()));
 dataTested = true;
ertTrue("No data tested as flag no set", dataTested);
}