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