### Question:
DigitalArchitectureEvent extends DigitalArchitectureEventHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), 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 testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); DigitalArchitectureEvent testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); DigitalArchitectureEvent differentObject = getTestObject(); differentObject.setEventType(null); assertFalse(testObject.hashCode() == differentObject.hashCode()); }