@Test
public void testParseUriQueryParams() {

    URI u = UriUtils.buildUri("http://example.com:8000/?a=b&c=d&d&e=f=g&h=&=z");
    Map<String, String> queryParams = UriUtils.parseUriQueryParams(u);
    assertEquals(5, queryParams.size());
    assertTrue(queryParams.get("a").equals("b"));
    assertTrue(queryParams.get("c").equals("d"));
    assertTrue(queryParams.get("d").equals(""));
    assertTrue(queryParams.get("e").equals("f=g"));
    assertTrue(queryParams.get("h").equals(""));
}