MappingOntologyData mod = (MappingOntologyData) od;
List<Mapping> mappings = mod.getMappings();
Set<StmtKey> retrievedTriples = new HashSet<StmtKey>();
for ( int i = 0; i < mapps.length; i++ ) {
Mapping mapping = mappings.get(i);
retrievedTriples.add(new StmtKey(mapping.getLeft(), mapping.getRelation(), mapping.getRight()));
}
assertEquals(originalTriples.size(), retrievedTriples.size());
for ( StmtKey originalKey : originalTriples ) {
assertTrue("retrieved mapping is a original one", retrievedTriples.contains(originalKey));