### Question:
DigitalService extends DigitalServiceElementHeader { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof DigitalService)) { return false; } DigitalService asset = (DigitalService) objectToCompare; return Objects.equals(getVersion(),asset.getVersion()) && Objects.equals(getDisplayName(), asset.getDisplayName()) && Objects.equals(getDescription(), asset.getDescription()); } DigitalService();  DigitalService(DigitalService template); String getVersion(); void setVersion(String version); String getDisplayName(); void setDisplayName(String displayName); String getDescription(); void setDescription(String description); @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())); DigitalService sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); DigitalService differentObject = getTestObject(); differentObject.setDescription("Different description for the different digital service"); assertFalse(getTestObject().equals(differentObject)); }