title: How to send a request to a running REST service using Jersey?
body: <p>For example, there is a REST resource:</p>
  
  <pre><code> @POST    
   @Path("/test")    
   @Consumes(MediaType.APPLICATION_JSON)
   public Response create(String content){
  
        ...
   }
  </code></pre>
  
  <p>How to make a request for this resource in the client using the Jersey library? Request example:</p>
  
  <pre><code>POST http://localhost:8080/test
  Authorization: Basic eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1aWQiOjIsInJvbGUiOiJDVVNUT01FUiIsImlzcyI6ImFwcDRwcm8ucnUifQ.rPfB4I-VdJ09ca5ogD5D6c1aYUtySAYAgjW8_TefZSY
  Content-Type: application/json
  
  *json content*
  </code></pre>