JsonRpcV1Response { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof JsonRpcV1Response)) { return false; } JsonRpcV1Response that = (JsonRpcV1Response) other; return Objects.equals(result, that.result) && Objects.equals(error, that.error) && Objects.equals(id, that.id); } @JsonCreator  JsonRpcV1Response(
      @JsonProperty(value = RESULT, required = true) JsonNode result,
      @JsonProperty(value = ERROR, required = true) String error,
      @JsonProperty(value = ID, required = true) String id
  );  JsonRpcV1Response(Object result, String error, String id); JsonNode getResult(); String getError(); String getId(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new JsonRpcV1Response("value", null, "id"), response ) .addEqualityGroup( new JsonRpcV1Response(null, "error", "id"), new JsonRpcV1Response(null, "error", "id") ).testEquals(); }