### Question:
AssetMapSchemaType extends AssetSchemaType { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetMapSchemaType)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetMapSchemaType that = (AssetMapSchemaType) objectToCompare; return Objects.equals(getMapFromElement(), that.getMapFromElement()) && Objects.equals(getMapToElement(), that.getMapToElement()); } protected  AssetMapSchemaType(AssetDescriptor parentAsset);  AssetMapSchemaType(AssetDescriptor parentAsset,
                              MapSchemaType   schemaType);  AssetMapSchemaType(MapSchemaType   schemaType);  AssetMapSchemaType(AssetDescriptor parentAsset, AssetMapSchemaType template); AssetSchemaType getMapFromElement(); AssetSchemaType getMapToElement(); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); AssetMapSchemaType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); assertFalse(getTestObject().equals(getYetAnotherDifferentObject())); }