### Question:
Utils { static String normalizeUrl(String url) { if (url.endsWith("/")) { return url.substring(0, url.length() - 1); } return url; } private  Utils(); static void fileToCert(String filePath, PuppetConfiguration pCfg); static void streamToCerts(InputStream is, PuppetConfiguration pCfg); static Map<String, Object> getDefaultParams(Map<String, Object> globalVars); static void debug(Logger log, boolean debug, String msg); static void setField(Object target, Field field, Object value); static Object getFieldValue(Object target, Field field);  }### Answer:
@Test public void normalizeUrlTest() { String normalizedUrl = "https: String normalizedUrlWithPort = "https: assertEquals(normalizedUrl, Utils.normalizeUrl("https: assertEquals(normalizedUrlWithPort, Utils.normalizeUrl("https: assertEquals(normalizedUrl, Utils.normalizeUrl("https: assertEquals(normalizedUrlWithPort, Utils.normalizeUrl("https: }