### Question:
Encryption { public static String md5(final String str) { try { MessageDigest messageDigest = MessageDigest.getInstance(MD5); messageDigest.update(str.getBytes()); return new BigInteger(1, messageDigest.digest()).toString(16); } catch (final NoSuchAlgorithmException ex) { throw new JobSystemException(ex); } }  static String md5(final String str);  }### Answer:
@Test public void assertMd5() { Assert.assertThat(Encryption.md5("test"), Is.is("98f6bcd4621d373cade4e832627b4f6")); }