//NOTE: Jena TDB does not support getSize for the union graph
// int expectedTripleCount = persons.size()+orgdata.size();
// Assert.assertEquals("Uniongraph has "+data.size()
// +" triples (expected "+expectedTripleCount+")",
// expectedTripleCount, data.size());
Iterator<Triple> it = data.filter(null, type, companyType);
Set<UriRef> expected = new HashSet<UriRef>(Arrays.asList(talinor,kondalor));
while(it.hasNext()){
NonLiteral subject = it.next().getSubject();
Assert.assertTrue("Unexpected "+subject, expected.remove(subject));
}