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