title: Jersey unit testing with annotation
body: <p>I am working on a Restful Web Service, which get request from client, then strip some information and insert it into the database. </p>
  
  <p>When it insert to the database, it has two parts of information needed: Uri and HttpRequest.</p>
  
  <p>Now I have my method like this: </p>
  
  <pre><code>public void insertDb (@Context UriInfo uriInfo, @Context HttpServletRequest request)
  </code></pre>
  
  <p>I am trying to do some unit testing, create a client then WebResouce.</p>
  
  <p>I wonder how can I pass in the parameters in unit testing? Or should I change the params in the <code>insertDb</code> function?</p>