ExternalLinkUtils { static String encodeToUTF8(final String url) { try { return URLEncoder.encode(url, "UTF-8").replaceAll("\\+", "%20"); } catch (final UnsupportedEncodingException e) { logger.error("Specified encoding is not supported", e); } return ""; }  static String getExternalAnalyzerOnReq(final Props azkProps,
      final HttpServletRequest req); static String getExternalLogViewer(final Props azkProps, final String jobId,
      final Props jobProps);  }
@Test public void testEncodingToUFT8() { assertTrue(ExternalLinkUtils.encodeToUTF8(" ").equals("%20")); assertTrue(ExternalLinkUtils.encodeToUTF8("+").equals("%2B")); assertTrue(ExternalLinkUtils.encodeToUTF8("/").equals("%2F")); assertTrue(ExternalLinkUtils.encodeToUTF8(":").equals("%3A")); assertTrue(ExternalLinkUtils.encodeToUTF8("?").equals("%3F")); assertTrue(ExternalLinkUtils.encodeToUTF8("=").equals("%3D")); }