### Question:
Id { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if ((obj == null) || (getClass() != obj.getClass())) { return false; } final Id other = (Id) obj; return Objects.equals(id, other.id) && Objects.equals(idStr, other.idStr); } @JsonCreator  Id(@JsonProperty("id") final long id,
            @JsonProperty("id_str") final String idStr);  Id(final long id); @JsonProperty long getId(); @JsonProperty("id_str") String getIdAsString(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { final Id id2 = new Id(1234L); assertThat(id2).isEqualTo(id); }