### Question:
AssetBoundedSchemaType extends AssetSchemaType { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (!(objectToCompare instanceof AssetBoundedSchemaType)) { return false; } if (!super.equals(objectToCompare)) { return false; } AssetBoundedSchemaType that = (AssetBoundedSchemaType) objectToCompare; return Objects.equals(getSchemaBean(), that.getSchemaBean()); } protected  AssetBoundedSchemaType(AssetDescriptor parentAsset);  AssetBoundedSchemaType(BoundedSchemaType boundedSchemaType);  AssetBoundedSchemaType(AssetDescriptor   parentAsset,
                                  BoundedSchemaType boundedSchemaType);  AssetBoundedSchemaType(AssetDescriptor parentAsset, AssetBoundedSchemaType template); BoundedSchemaCategory getBoundedSchemaCategory(); AssetSchemaType getBoundedSchemaElementType(); int getMaximumElements(); @Override String toString(); @Override boolean equals(Object objectToCompare);  }### Answer:
@SuppressWarnings(value = "deprecation") @Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); AssetBoundedSchemaType sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); assertFalse(getTestObject().equals(getDifferentObject())); assertFalse(getTestObject().equals(getAnotherDifferentObject())); assertFalse(getTestObject().equals(getYetAnotherDifferentObject())); assertFalse(getTestObject().equals(getAndYetAnotherDifferentObject())); }