### Question:
HttpStatusException extends ButtonNetworkException { public boolean wasBadRequest() { return statusCode >= 400 && statusCode < 500; } HttpStatusException(String message, int statusCode); boolean wasBadRequest(); boolean wasUnauthorized(); boolean wasRateLimited(); boolean wasServerError();  }### Answer:
@Test public void wasBadRequest_verify() { for (int statusCode = 400; statusCode < 500; statusCode++) { HttpStatusException httpStatusException = new HttpStatusException("", statusCode); assertTrue(httpStatusException.wasBadRequest()); } }