### Question:
EntitySummary extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); } EntitySummary();  EntitySummary(EntitySummary   templateElement); List<Classification> getClassifications(); void setClassifications(List<Classification> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testHash() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); InstanceHeader testObject = getTestObject(); InstanceHeader anotherObject = getTestObject(); anotherObject.setCreatedBy("DifferentAuthor"); assertFalse(testObject.hashCode() == anotherObject.hashCode()); }