@Test
public void testGetDigest() 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);
 assertArrayEquals(
  "apacheValue.digest() and testValue.digest() should be equal",
  apacheValue.getDigest(), testValue.getDigest());
 assertThat(
  "apacheValue.digest() and testSha256Value.digest() shouldn't be equal",
  apacheValue.getDigest(),
  IsNot.not(IsEqual.equalTo(testSha256Value.getDigest())));
 dataTested = true;
ertTrue("No data tested as flag no set", dataTested);
}