title: is it a correct behavior of UriBuilder in JAX-RS?
body: <p>First example:</p>
  
  <pre><code>UriBuilder.fromUri("http://localhost")
    .queryParam("foo", "test")
    .clone()
    .build()
  // equals to: "http://localhost/?foo=test"
  </code></pre>
  
  <p>Second example:</p>
  
  <pre><code>UriBuilder.fromUri("http://localhost")
    .replaceQueryParam("foo", "test")
    .clone()
    .build()
  // equals to: "http://localhost/"
  </code></pre>
  
  <p>It should be like this or it's a defect (in Jersey 1.11)?</p>