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

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