### Question:
URLUtil { public static String getURIPathAndParameter(String uri, Map<String, String> kvParams) { String path = getURIPath(uri); if (uri.length() == path.length() || kvParams == null) { return path; } decodeParams(uri.substring(path.length() + 1), kvParams); return path; }  static String getURIPath(String uri); static String getURIPathAndParameter(String uri, Map<String, String> kvParams);  }### Answer:
@Test public void testGetURIParameter() { Map<String, String> params = new HashMap<>(); String path = URLUtil.getURIPathAndParameter("http: Map<String, String> result = new HashMap<>(); result.put("name", "emma"); result.put("age", "18"); Assert.assertEquals(params, result); params.clear(); path = URLUtil.getURIPathAndParameter("http: result = new HashMap<>(); result.put("serviceName", "com.Twitter"); result.put("method", "echo"); Assert.assertEquals(params, result); }