HttpErrorResponseException extends RuntimeException { @Override public int hashCode() { return Integer.valueOf(statusCode).hashCode(); } HttpErrorResponseException(int statusCode, String statusDescription, String responseMessage);  HttpErrorResponseException(String message, int statusCode, String statusDescription, String responseMessage);  HttpErrorResponseException(String message, Throwable cause, int statusCode, String statusDescription, String responseMessage);  HttpErrorResponseException(Throwable cause, int statusCode, String statusDescription, String responseMessage); protected  HttpErrorResponseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, int statusCode,
        String statusDescription, String responseMessage); int getStatusCode(); String getStatusDescription(); String getResponseMessage(); @Override String toString(); @Override boolean equals(Object object); @Override int hashCode();  }
@Test public void testHashCode() { HttpErrorResponseException testHttpErrorResponseException = new HttpErrorResponseException(testMessage, testStatusCode, testStatusDescription, testResponseMessage); assertEquals(((Integer) testStatusCode).hashCode(), testHttpErrorResponseException.hashCode()); }