### Question:
URLUtil { public static String transform(String restUrl) { if (restUrl == null) { return null; } String scheme = "http"; if (isSSLEnable(restUrl)) { scheme = "https"; } if (restUrl.contains("?")) { return scheme + SCHEMA_SEPRATOR + restUrl.substring(restUrl.indexOf(SCHEMA_SEPRATOR) + SCHEMA_SEPRATOR.length(), restUrl.indexOf("?")); } return scheme + SCHEMA_SEPRATOR + restUrl.substring(restUrl.indexOf(SCHEMA_SEPRATOR) + SCHEMA_SEPRATOR.length()); }  static String[] splitIpPort(String url); static String transform(String restUrl); static boolean isEquals(String url1, String url2); static List<String> dealMultiUrl(String urls); static List<String> getEnvConfigUrl(); static List<String> getEnvServerURL();  }### Answer:
@Test public void transform() { Assert.assertEquals(URLUtil.transform("rest: Assert.assertEquals(URLUtil.transform("rest: Assert.assertNull(URLUtil.transform(null)); }