@Test(expected = NoSuchAlgorithmException.class) public void shouldHandleNoSuchAlgorithmException() throws Throwable { try { MD5Util.generateMD5("someValue", "UTF-8", "myAlgorithm"); } catch (RuntimeException e) { unwrapException(e); } }
public static String generateMD5(String baseValue) { return generateMD5(baseValue, "UTF-8", "MD5"); }
MD5Util { public static String generateMD5(String baseValue) { return generateMD5(baseValue, "UTF-8", "MD5"); } }
MD5Util { public static String generateMD5(String baseValue) { return generateMD5(baseValue, "UTF-8", "MD5"); }  }
MD5Util { public static String generateMD5(String baseValue) { return generateMD5(baseValue, "UTF-8", "MD5"); }  static String generateMD5(String baseValue); }
MD5Util { public static String generateMD5(String baseValue) { return generateMD5(baseValue, "UTF-8", "MD5"); }  static String generateMD5(String baseValue);  }