    @Test
    public void testReplaceQueryParam() {

        URI uri = new UriBuilderImpl().path("http://localhost/").replaceQueryParam("foo", "test").build();
        assertEquals("http://localhost/?foo=test", uri.toString());
    }