### Question:
Owner extends DefaultBaseEntity { @Override public boolean equals(final Object obj) { return EqualsBuilder.reflectionEquals(this, obj); }  String getName(); void setName(final String name); String getAddress(); void setAddress(final String address); String getCity(); void setCity(final String city); String getTelephone(); void setTelephone(final String telephone); List<Pet> getPets(); void setPets(final List<Pet> pets); String getUrl(); @Override boolean equals(final Object obj); @Override int hashCode();  }### Answer:
@Test public void testEquals() { final Owner o1 = new Owner(); final Owner o2 = new Owner(); final Owner o3 = new Owner(); o2.setId(o1.getId()); assertEquals(o1, o2); assertNotEquals(o1, null); assertNotEquals(o1, new Object()); assertNotEquals(o1, o3); }