* {@link org.mantikhor.llapi.impl.PropertyDefinitionImpl#equals(java.lang.Object)}.
*
*/
public void testEquals()
{
PropertyDefinition propDef0 = propertyDefinitionImpls.get(0);
// Different instance, but should be equal to propDef0 ...
DomainURI uri = (DomainURI)map.get(PropertyCategory.TYPEDEF);
PropertyDefinition sameAsPropDef0 =
new PropertyDefinitionImpl(PropertyCategory.TYPEDEF, DomainURI.valueByString(uri.toString()));
// Assert that propDef0 and sameAsPropDef0 are equal ... they are of the same category and same domain URI.
assertTrue(propDef0.equals(sameAsPropDef0));
// Test for symmetry
if (sameAsPropDef0.equals(propDef0))
assertTrue(propDef0.equals(sameAsPropDef0));
if (!sameAsPropDef0.equals(propDef0))
assertTrue(!propDef0.equals(sameAsPropDef0));
// Contract for equals says if 'that' is null, then equals returns false
assertFalse(propDef0.equals(null));
// Reflexive?
assertTrue(sameAsPropDef0.equals(sameAsPropDef0));
assertTrue(propDef0.equals(propDef0));
// All the sample pre-built PropertyDefinitionImpl(s) should be not equal to each other
for (int index = 0; index < propertyDefinitionImpls.size()-1; index++)
{