### Question:
AssetPrimitiveSchemaType extends AssetSimpleSchemaType { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetPrimitiveSchemaType)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetPrimitiveSchemaType that = (AssetPrimitiveSchemaType) objectToCompare; return Objects.equals(getPrimitiveSchemaTypeBean(), that.getPrimitiveSchemaTypeBean()); } protected  AssetPrimitiveSchemaType(AssetDescriptor parentAsset);  AssetPrimitiveSchemaType(PrimitiveSchemaType primitiveSchemaTypeBean);  AssetPrimitiveSchemaType(AssetDescriptor parentAsset,
                                    PrimitiveSchemaType primitiveSchemaTypeBean);  AssetPrimitiveSchemaType(AssetDescriptor parentAsset,
                                    AssetPrimitiveSchemaType templateSchemaElement); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); AssetPrimitiveSchemaType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); assertFalse(getTestObject().equals(getYetAnotherDifferentObject())); }