### Question:
Error { public String getErrorCode() { return errorCode; } @JsonCreator  Error(
            @JsonProperty(value = "error_code") String errorCode,
            @JsonProperty(value = "error_detail") Object errorDetail,
            @JsonProperty(value = "error_data") Object errorData
    ); String getErrorCode(); Object getErrorDetail(); Object getErrorData();  }### Answer:
@Test public void getErrorCode() { assertEquals("Error Code", error.getErrorCode()); }
@Test public void objectMapperPopulatesErrorCode() throws Exception { String json = "{\"error_code\":\"Error Code\"}"; Error error = mapper.readValue(json, Error.class); assertEquals("Error Code", error.getErrorCode()); }