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