title: how properly mock UriInfo?
body: <p>That's my piece of code:</p>
  
  <pre><code>import java.net.URI;
  import javax.ws.rs.core.UriInfo;
  (...)
  
      UriInfo mockUriInfo;
      String url = "test";
  
      mockUriInfo = mock(UriInfo.class);
      when(mockUriInfo.getRequestUri()).then(new URI(url));
  </code></pre>
  
  <p>Unfortunately I've got an <strong>error</strong>:</p>
  
  <pre><code>then(org.mockito.stubbing.Answer) cannot be applied to (java.new URI)
  </code></pre>
  
  <p>Any idea how can i resolve it?</p>