title: com.owlike.genson.JsonBindingException: Could not deserialize to type class javax.ws.rs.core.Response
body: <p>I have Jersey 1.19 REST web service which return custom @XmlRootElement response objects and works well. However, when I execute tests which should assert javax.ws.rs.core.Response later, I get exception:</p>
  
  <pre><code>javax.ws.rs.WebApplicationException: com.owlike.genson.JsonBindingException: Could not deserialize to type class javax.ws.rs.core.Response
      at com.owlike.genson.ext.jaxrs.GensonJsonConverter.readFrom(GensonJsonConverter.java:127)
      at com.sun.jersey.api.client.ClientResponse.getEntity(ClientResponse.java:634)
  </code></pre>
  
  <p>Response type:</p>
  
  <pre><code>@XmlRootElement
  public class MyResponse {
      public String message;
  }
  </code></pre>
  
  <p>Endpoint which returns MyResponse:</p>
  
  <pre><code>@GET
  @Path("/info")
  @Consumes(MediaType.APPLICATION_JSON)
  @Produces(MediaType.APPLICATION_JSON)
  public MyResponse getInfo(){
      return new MyResponse();
  }
  </code></pre>
  
  <p>My pom.xml fragments containing related libraries:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;com.google.code.gson&lt;/groupId&gt;
      &lt;artifactId&gt;gson&lt;/artifactId&gt;
      &lt;version&gt;2.2.4&lt;/version&gt;
      &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.owlike&lt;/groupId&gt;
      &lt;artifactId&gt;genson&lt;/artifactId&gt;
      &lt;version&gt;1.4&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
      &lt;version&gt;2.1.3&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-json&lt;/artifactId&gt;
      &lt;version&gt;1.19&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.jersey.jersey-test-framework&lt;/groupId&gt;
      &lt;artifactId&gt;jersey-test-framework-grizzly2&lt;/artifactId&gt;
      &lt;version&gt;1.19&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>How to solve this problem?</p>