### Question:
DigitalArchitectureEvent extends DigitalArchitectureEventHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalArchitectureEvent)) { return false; } if (!super.equals(objectToCompare)) { return false; } DigitalArchitectureEvent that = (DigitalArchitectureEvent) objectToCompare; return getEventType() == that.getEventType(); } DigitalArchitectureEvent();  DigitalArchitectureEvent(DigitalArchitectureEvent template); DigitalArchitectureEventType getEventType(); void setEventType(DigitalArchitectureEventType eventType); @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())); DigitalArchitectureEvent sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); DigitalArchitectureEvent anotherObject = getTestObject(); anotherObject.setEventVersionId(3773L); assertFalse(getTestObject().equals(anotherObject)); }