### Question:
UriUtil { public static String addParam(String uri, String name, String value) { final String questionMarkOrAnd = uri.split("\\?").length > 1 ? "&" : "?"; return uri + questionMarkOrAnd + name + "=" + value; }  static String getScheme(URI uri); static String getScheme(String uri); static String addParam(String uri, String name, String value);  }### Answer:
@Test public void testAddParam() throws Exception { String userAdded = UriUtil.addParam(URI2, "user", "xxx"); assertEquals("jdbc:postgresql: assertEquals("jdbc:postgresql: }