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