### Question:
InstanceHeader extends InstanceAuditHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), guid, getInstanceURL()); } InstanceHeader();  InstanceHeader(InstanceHeader    template); String getInstanceURL(); void setInstanceURL(String instanceURL); String getGUID(); void setGUID(String guid); @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()); }