### Question:
Pet { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Pet pet = (Pet) o; return Objects.equals(id, pet.id) && Objects.equals(name, pet.name); } Pet(@JsonProperty("id") Long id,
               @JsonProperty("name") String name); Long getId(); String getName(); void setId(Long id); void setName(String name); @Override boolean equals(Object o); @Override int hashCode();  }### Answer:
@Test public void testEquals() { Pet firstPet = new Pet(1L, "Falco"); Pet secondPet = new Pet(2L, "Molly"); assertFalse(firstPet.equals(secondPet)); assertFalse(firstPet.equals(null)); }