@Test
public void testEqualsNegativeDataMax() {
OWLDataProperty prop = DP(IRI());
// Different cardinality
OWLDataCardinalityRestriction restA = testSubject
.getOWLDataMaxCardinality(3, prop, testSubject.getTopDatatype());
OWLDataCardinalityRestriction restB = testSubject
.getOWLDataMaxCardinality(4, prop, testSubject.getTopDatatype());
assertFalse(restA.equals(restB));
// Different property
OWLDataCardinalityRestriction restC = testSubject
.getOWLDataMaxCardinality(3, DP(IRI()),
testSubject.getTopDatatype());
OWLDataCardinalityRestriction restD = testSubject
.getOWLDataMaxCardinality(3, DP(IRI()),
testSubject.getTopDatatype());
assertFalse(restC.equals(restD));
// Different filler
OWLDataCardinalityRestriction restE = testSubject
.getOWLDataMaxCardinality(3, prop, D(IRI()));
OWLDataCardinalityRestriction restF = testSubject
.getOWLDataMaxCardinality(3, prop, D(IRI()));
assertFalse(restE.equals(restF));
assertEquals(restA.getProperty(), prop);
}