title: Jersey bean validation responding 415 unsupported media type
body: <p>I am trying to validate a json request from client using bean validation. Here is my resource class</p>
  
  <pre><code>@Path("/test")
  public class Tester {
  
  public Tester(){
  
  }
  
  @POST
  @Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.TEXT_HTML)
  public Response test(@Valid Test test) throws ConstraintViolationException{
  
      return Response.status(200).entity("hello world")
   }
  
  }
  </code></pre>
  
  <p>and here is my Test class</p>
  
  <pre><code>public class Test {
  
  public Test(){
  
  }
  
  @NotNull(message="test cannot be empty")
  private String test;
  
  public String getTest() {
      return test;
  }
  
  public void setTest(String test) {
      this.test = test;
  }
  }
  </code></pre>
  
  <p>and everytime i send a request from client it responds <code>415 unsupported media type</code> can anybody please help? i used jersey-bean-validation-2.25.1 
  Thanx!!!</p>