public void testEquivalencesSimple() {
TransitiveGraphCache cache = new TransitiveGraphCache(directP, closedP);
cache.addRelation(new Triple(a, closedP, b));
cache.addRelation(new Triple(b, closedP, a));
TestUtil.assertIteratorValues(this,
cache.find(new TriplePattern(null, closedP, null)),
new Object[] {
new Triple(a, closedP, b),
new Triple(b, closedP, a),
new Triple(b, closedP, b),
new Triple(a, closedP, a),
});
TestUtil.assertIteratorLength( cache.find(new TriplePattern(null, closedP, null)), 4);
}