title: Restassured test error - No Content-Type was specified in response
body: <p>I try to test my rest endpoint with restassured.
  The response is always a html document, altough i set the accept-header to "application/json".</p>
  
  <p>*java.lang.IllegalStateException: Cannot parse object because no supported Content-Type was specified in response. Content-Type was 'text/html;charset=utf-8'.</p>
  
  <p>[main] DEBUG org.apache.http.wire -  &lt;&lt; "HTTP Status 400 [0xe2][0x80][0x93] Bad Request*</p>
  
  <p>edit: In postman its working with the same request.</p>
  
  <pre><code>myClass result = given()
                      .contentType("application/json")
                      .accept("application/json")
                      .header("sessionid", sessionId)
                      .body(myBody)
                      .when()
                      .post(getInternalEndpoint() + "/rest/v1/myEndpoint").as(myClass.class);
  </code></pre>