DigestHelper { public static String computeFileChecksum(Path file, String algorithm) throws NoSuchAlgorithmException, IOException { return DatatypeConverter.printHexBinary(computeFileCheckSumBytes(file, algorithm)); } private  DigestHelper(); static String computeFileChecksum(Path file, String algorithm); static String computeDirectoryCheckSum(Path filePath, String algorithm);  }
@Test void testComputeFileChecksum() throws Exception { assertEquals("439B99DFFD0583200D5D21F4CD1BF035", DigestHelper.computeFileChecksum(Paths.get("src/test/resources/org/cloudfoundry/multiapps/common/util/web.zip"), "MD5")); }