### Question:
HttpStatusException extends ButtonNetworkException { public boolean wasRateLimited() { return statusCode == 429; } HttpStatusException(String message, int statusCode); boolean wasBadRequest(); boolean wasUnauthorized(); boolean wasRateLimited(); boolean wasServerError();  }### Answer:
@Test public void wasRateLimited_verify() { HttpStatusException httpStatusException = new HttpStatusException("", 429); assertTrue(httpStatusException.wasRateLimited()); }