### Question:
Address implements Serializable { @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Address address = (Address) o; return Objects.equals(name, address.name) && type == address.type && Objects.equals(street, address.street) && Objects.equals(houseNo, address.houseNo) && Objects.equals(addressLine1, address.addressLine1) && Objects.equals(addressLine2, address.addressLine2) && Objects.equals(postalCode, address.postalCode) && Objects.equals(town, address.town) && Objects.equals(countryCode, address.countryCode); }  Type getType(); String getName(); void setName(String name); String getAddressLine1(); void setAddressLine1(String addressLine1); String getAddressLine2(); void setAddressLine2(String addressLine2); String getStreet(); void setStreet(String street); String getHouseNo(); void setHouseNo(String houseNo); String getPostalCode(); void setPostalCode(String postalCode); String getTown(); void setTown(String town); String getCountryCode(); void setCountryCode(String countryCode); void clear(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test void testEquals() { Address address1 = createCombinedElementAddress(); Address address2 = createCombinedElementAddress(); assertEquals(address1, address2); assertEquals(address2, address1); address2.setCountryCode("FR"); assertNotEquals(address1, address2); }