### Question:
ClouderaAPIUtil { public static String extractNavigatorURL(String navigatorUrl) { Pattern compile = Pattern.compile("((?:ht|f)tps?\\:\\/\\/[^:]*:[0-9]*)"); Matcher matcher = compile.matcher(navigatorUrl); if (matcher.find()) { return matcher.group(0); } else { return navigatorUrl; } }  static boolean isFileInputOutputComponent(String componentName); static String getDatasetName(String path); static NavigatorNode retrieveNavigatorNode(String name, List<NavigatorNode> navigatorNodes); static Boolean isFieldinComponent(String componentName, String fieldName, List<NavigatorNode> navigatorNodes); static String extractNavigatorURL(String navigatorUrl); static final String[] FILE_INPUT_OUTPUT_COMPONENT_PREFIXS; }### Answer:
@Test public void TestExtractNavigatorURL() { assertEquals("http: assertEquals("https: assertEquals("http: assertEquals("https: ClouderaAPIUtil.extractNavigatorURL("https: assertEquals("http: ClouderaAPIUtil.extractNavigatorURL("http: assertEquals("http: ClouderaAPIUtil.extractNavigatorURL("http: assertEquals("http: ClouderaAPIUtil.extractNavigatorURL("http: assertEquals("http: ClouderaAPIUtil.extractNavigatorURL("http: assertEquals("http: ClouderaAPIUtil.extractNavigatorURL("http: assertEquals("http: assertEquals("httpXX: }