UpdateResult extends OperationResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof UpdateResult)) { return false; } UpdateResult that = (UpdateResult) other; return count == that.getCount(); } @JsonCreator  UpdateResult(@JsonProperty(value = "count", required = true) long count); Long getCount(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new UpdateResult(42), new UpdateResult(42)) .testEquals(); }