### Question:
JsonRpcErrorResponse implements JsonRpcResponse { @JsonGetter("error") public JsonRpcError getError() { return error; } @JsonCreator  JsonRpcErrorResponse(
      @JsonProperty("id") final Object id, @JsonProperty("error") final JsonRpcError error);  JsonRpcErrorResponse(final JsonRpcError error); @JsonGetter("id") Object getId(); @JsonGetter("error") JsonRpcError getError(); @Override @JsonIgnore JsonRpcResponseType getType(); @Override boolean equals(final Object o); @Override int hashCode();  }### Answer:
@Test public void decodeErrorReportFromWeb3jProvider() { final JsonObject jsonObject = new JsonObject( "{\"jsonrpc\":\"2.0\",\"id\":77,\"error\":{\"code\":-32602,\"message\":\"Invalid params\"}}"); final JsonRpcErrorResponse response = jsonObject.mapTo(JsonRpcErrorResponse.class); assertThat(response.getError().getCode()).isEqualTo(-32602); }