### Question:
URLUtil { public static String getURIPath(String uri) { if (StringUtils.isBlank(uri)) { return ""; } int pathEndPos = uri.indexOf('?'); if (pathEndPos < 0) { return uri; } else { return uri.substring(0, pathEndPos); } }  static String getURIPath(String uri); static String getURIPathAndParameter(String uri, Map<String, String> kvParams);  }### Answer:
@Test public void testGetURIPath() { String uri = URLUtil.getURIPath("http: Assert.assertEquals(uri, "http: }