LockResult { @Override public boolean equals(Object other) { if (this == other) { return true; } if (!(other instanceof LockResult)) { return false; } LockResult that = (LockResult) other; return locked == that.locked; } @JsonCreator  LockResult(@JsonProperty(value = "locked", required = true) boolean locked); boolean isLocked(); @Override boolean equals(Object other); @Override int hashCode(); @Override String toString();  }
@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new LockResult(true), new LockResult(true)) .addEqualityGroup(new LockResult(false), new LockResult(false)) .testEquals(); }