### Question:
UriUtils { public static String withQueryParam(String uri, String name, String value) { return withQueryParam(URI.create(uri), name, value).toString(); } private  UriUtils(); static String withQueryParam(String uri, String name, String value); static URI withQueryParam(URI uri, String name, String value);  }### Answer:
@Test public void testWithQueryParamString() { String uri = UriUtils.withQueryParam("http: assertEquals(uri.toString(), "http: }
@Test public void testWithQueryParamsURI() throws URISyntaxException { URI uri = UriUtils.withQueryParam(new URI("http: assertEquals(uri.toString(), "http: }