title: How to post a JSON request in Jersey-Test
body: <p>I'm writing unit test for my REST application, and i'm stuck. When i used header parameters, tests were obvious. But now, my requests are in JSON, and i dont know how to test it. Maybe there is a way to do it with Jersey or maybe with Jackson.
  My line where i get the response from my resource looks like this: </p>
  
  <pre><code>final Response response = RULE.getJerseyTest().target("/actors/1").request().post(/* json request */);
  </code></pre>
  
  <p>Where the RULE is ResourceTestRule.</p>
  
  <p>What should i do with it to make it POST a resource? </p>