MD5s { public static String toHex(String base64Md5) { byte[] decodedHexB64 = BaseEncoding.base64().decode(base64Md5); return BaseEncoding.base16().lowerCase().encode(decodedHexB64); }  static String toBase64(String hexMd5); static String toHex(String base64Md5); static boolean isBase64(String value); static boolean isHex(String value); static boolean isEqual(String firstMD5, String secondMD5);  }
@Test public void test_to_hex() { assertThat(MD5s.toHex(MD5_BASE64_2)).isEqualToIgnoringCase(MD5_HEX_2); }
@Test public void test_to_hex_non_base64() { assertThat(MD5s.toHex(MD5_BASE64_2)).isEqualToIgnoringCase(MD5_HEX_2); }