### Question:
KarmaPointOutboundEvent extends PersonalProfileOutboundEvent { @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; } KarmaPointOutboundEvent that = (KarmaPointOutboundEvent) objectToCompare; return getPointsTotal() == that.getPointsTotal() && getPlateau() == that.getPlateau() && Objects.equals(getUserId(), that.getUserId()); } KarmaPointOutboundEvent();  KarmaPointOutboundEvent(KarmaPointOutboundEvent template); String getUserId(); void setUserId(String userId); long getPointsTotal(); void setPointsTotal(long pointsTotal); long getPlateau(); void setPlateau(long plateau); @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())); CommunityProfileOutboundEvent sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); CommunityProfileOutboundEvent anotherObject = getTestObject(); anotherObject.setEventVersionId(3773L); assertFalse(getTestObject().equals(anotherObject)); }