### Question:
HttpUtil { public static Map<String,String> getParams(URI uri) throws UnsupportedEncodingException { return getParamsFromQuery(uri.getQuery()); }  static Map<String,String> getParams(URI uri); static Map<String, String> getParamsFromQuery(String queryString); static String buildQuery(Map<String,String> params);  }### Answer:
@Test public void testGetParams() throws UnsupportedEncodingException { Map<String,String> params = HttpUtil.getParamsFromQuery(uri.getQuery()); assertEquals(2, params.size()); assertEquals("val1", params.get("key1")); assertEquals("val2", params.get("key2")); }