### Question:
AssetEvent extends AssetConsumerEvent { @Override public int hashCode() { return Objects.hash(super.hashCode(), getAsset()); } AssetEvent();  AssetEvent(AssetEvent template); Asset getAsset(); void setAsset(Asset asset); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testHashCode() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); AssetEvent testObject = getTestObject(); assertTrue(testObject.hashCode() != 0); AssetEvent differentObject = getTestObject(); differentObject.setAsset(null); assertFalse(testObject.hashCode() == differentObject.hashCode()); }