### Question:
FailedHttpResponseException extends RuntimeException { public HttpEntity getEntity() { return entity; } FailedHttpResponseException(int statusCode, HttpEntity entity); int getStatusCode(); HttpEntity getEntity(); String getEntityAsString();  }### Answer:
@Test public void hasCorrectEntity() { assertEquals(entity, exception.getEntity()); }