assertFalse(iterator.hasNext());
}
@Test
public void testGetMGraph() {
TcProvider simpleTcmProvider = getInstance();
// add MGraphs
MGraph mGraph = simpleTcmProvider.createMGraph(uriRefA);
mGraph.add(new TripleImpl(uriRefA, uriRefA, uriRefA));
mGraph = simpleTcmProvider.createMGraph(uriRefA1);
mGraph.add(new TripleImpl(uriRefA1, uriRefA1, uriRefA1));
mGraph = simpleTcmProvider.createMGraph(uriRefB);
mGraph.add(new TripleImpl(uriRefB, uriRefB, uriRefA));
mGraph.add(new TripleImpl(uriRefB, uriRefB, uriRefB));
mGraph.remove(new TripleImpl(uriRefB, uriRefB, uriRefA));
assertEquals(1, mGraph.size());
mGraph = simpleTcmProvider.createMGraph(uriRefB1);
mGraph.add(new TripleImpl(uriRefB1, uriRefB1, uriRefB1));
MGraph bGraph = simpleTcmProvider.getMGraph(uriRefB);
Iterator<Triple> iterator = bGraph.iterator();
assertEquals(new TripleImpl(uriRefB, uriRefB, uriRefB), iterator.next());
assertFalse(iterator.hasNext());
}