HttpErrorResponseException extends RuntimeException { public HttpErrorResponseException(int statusCode, String statusDescription, String responseMessage) { super(); this.statusCode = statusCode; this.statusDescription = statusDescription; this.responseMessage = responseMessage; } 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 testHttpErrorResponseException() { HttpErrorResponseException testHttpErrorResponseException; testHttpErrorResponseException = new HttpErrorResponseException(testStatusCode, testStatusDescription, testResponseMessage); validateHttpErrorResponseException(null, null, testStatusCode, testStatusDescription, testResponseMessage, testHttpErrorResponseException); testHttpErrorResponseException = new HttpErrorResponseException(testMessage, testStatusCode, testStatusDescription, testResponseMessage); validateHttpErrorResponseException(testMessage, null, testStatusCode, testStatusDescription, testResponseMessage, testHttpErrorResponseException); testHttpErrorResponseException = new HttpErrorResponseException(testMessage, testCause, testStatusCode, testStatusDescription, testResponseMessage); validateHttpErrorResponseException(testMessage, testCause, testStatusCode, testStatusDescription, testResponseMessage, testHttpErrorResponseException); testHttpErrorResponseException = new HttpErrorResponseException(testCause, testStatusCode, testStatusDescription, testResponseMessage); validateHttpErrorResponseException(testCause.toString(), testCause, testStatusCode, testStatusDescription, testResponseMessage, testHttpErrorResponseException); testHttpErrorResponseException = new HttpErrorResponseException(testMessage, testCause, false, false, testStatusCode, testStatusDescription, testResponseMessage); validateHttpErrorResponseException(testMessage, testCause, testStatusCode, testStatusDescription, testResponseMessage, testHttpErrorResponseException); }