### Question:
PersonalProfileOutboundEvent extends CommunityProfileOutboundEvent { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } PersonalProfileOutboundEvent that = (PersonalProfileOutboundEvent) objectToCompare; return Objects.equals(getPersonalProfile(), that.getPersonalProfile()); } PersonalProfileOutboundEvent();  PersonalProfileOutboundEvent(PersonalProfileOutboundEvent template); PersonalProfile getPersonalProfile(); void setPersonalProfile(PersonalProfile personalProfile); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); PersonalProfileOutboundEvent sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); PersonalProfileOutboundEvent anotherObject = getTestObject(); anotherObject.setEventVersionId(3773L); assertFalse(getTestObject().equals(anotherObject)); }