### Question:
DigestUtils { public static byte[] digest(MessageDigest digest, byte[] data) { return digest.digest(data); }  static byte[] digest(MessageDigest digest, byte[] data); static MessageDigest updateDigest(MessageDigest messageDigest, byte[] valueToDigest); static byte[] digest(MessageDigest digest, InputStream data); static String getHexString(byte[] data); static byte[] fromHexString(String hexString); static String digest(MessageDigestAlgorithms algorithms, String data);  }### Answer:
@Test public void testMd5() { String source = "123456"; PerformanceMonitor.start("DigestUtilsTest"); for (int i = 0; i < 5; i++) { for (int j = 0; j < 10000; j++) { Assert.assertEquals("e10adc3949ba59abbe56e057f20f883e", DigestUtils.digest(MessageDigestAlgorithms.MD5, source)); } PerformanceMonitor.mark("md5 Test"); } for (int i = 0; i < 5; i++) { for (int j = 0; j < 10000; j++) { Assert.assertEquals("7c4a8d09ca3762af61e59520943dc26494f8941b", DigestUtils.digest(MessageDigestAlgorithms.SHA_1, source)); } PerformanceMonitor.mark("sha1 Test"); } PerformanceMonitor.stop(); PerformanceMonitor.summarize(new AdvancedStopWatchSummary(true)); PerformanceMonitor.remove(); }