title: Dropwizard, Jersey, unit testing - GET throws ConstraintViolationException: The request entity was empty at
body: <p>I have Dropwizard application and I am writing unit tests for it. I am following Dropwizard's documentation to do so : <a href="http://dropwizard.readthedocs.org/en/latest/manual/testing.html" rel="nofollow">http://dropwizard.readthedocs.org/en/latest/manual/testing.html</a></p>
  
  <p>What I am missing is how can I add parameter to my test which invokes GET method? 
  Here in the documentation :</p>
  
  <p>assertThat(resources.client().resource("/person/blah").get(Person.class))
                  .isEqualTo(person);</p>
  
  <p>What if my get method has a parameter? </p>
  
  <p>In Jersey's WebResource there are: </p>
  
  <pre><code>    @Override
      public &lt;T&gt; T get(Class&lt;T&gt; c) throws UniformInterfaceException, ClientHandlerException {
          return handle(c, build("GET"));
      }
  
      @Override
      public &lt;T&gt; T get(GenericType&lt;T&gt; gt) throws UniformInterfaceException, ClientHandlerException {
          return handle(gt, build("GET"));            
      }
  </code></pre>