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