### Question:
RemoteUrl { public static String cleanUrl(String url) { String result = null; try { result =url.replaceAll("\\{", "%7B"). replaceAll("\\}", "%7D"). replaceAll(" ", "%20"); }catch (Exception t){ t.printStackTrace(); } return result; }  static String cleanUrl(String url); static String urlToString(String url, List<AuthorizationValue> auths);  }### Answer:
@Test public void testCleanUrl() { String cleaned = RemoteUrl.cleanUrl("http: assertEquals(cleaned, "http: cleaned = RemoteUrl.cleanUrl("http: assertEquals(cleaned, "http: }