JSONObject jsonObject = new JSONObject();
jsonObject.put("error", "access_denied");
jsonObject.put("error_description", "Access denied");
jsonObject.put("error_uri", "https://c2id.com/errors/access_denied");
httpResponse.setContent(jsonObject.toJSONString());
ErrorObject errorObject = ErrorObject.parse(httpResponse);
assertEquals(403, errorObject.getHTTPStatusCode());
assertEquals("access_denied", errorObject.getCode());