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

Create a digest set with MD5, and SHA256
<DigestAlgorithm> algs = new HashSet<DigestAlgorithm>();
s.add(DigestAlgorithm.MD5);
s.add(DigestAlgorithm.SHA);
s.add(DigestAlgorithm.SHA256);
s.add(DigestAlgorithm.SHA384);
s.add(DigestAlgorithm.SHA512);
Iteratet through the test files
 (File file : AllCoreTest
etFilesFromResourceDir(AllCoreTest.TEST_DATA_ROOT)) {
 // Calculate both digests
 Set<JavaDigestValue> values = JavaDigestValue.createDigestSet(algs, new FileInputStream(file));
 for (JavaDigestValue value : values) {
itch (value.algorithm) {
se MD5: assertArrayEquals("Digest byte arrays should be equal", DigestUtils.md5(new FileInputStream(file)), value.getDigest());
eak;
se SHA: assertArrayEquals("Digest byte arrays should be equal", DigestUtils.sha(new FileInputStream(file)), value.getDigest());
eak;
se SHA256: assertArrayEquals("Digest byte arrays should be equal", DigestUtils.sha256(new FileInputStream(file)), value.getDigest());
eak;
se SHA384: assertArrayEquals("Digest byte arrays should be equal", DigestUtils.sha384(new FileInputStream(file)), value.getDigest());
eak;
se SHA512: assertArrayEquals("Digest byte arrays should be equal", DigestUtils.sha512(new FileInputStream(file)), value.getDigest());
 }
}