TripleCollection triples = createTestTripleCollection(createTestTriple());
TcProvider provider = getInstance();
UriRef name1 = new UriRef("http://myGraph1");
Graph graph = provider.createGraph(name1, triples);
UriRef name2 = new UriRef("http://myGraph2");
Graph secondGraph = provider.createGraph(name2, triples);
//if we delete graph with name1, the second graph should still be there
provider.deleteTripleCollection(name1);
provider = getInstance();
Graph firstGraph = provider.getGraph(name2);
assertNotNull(firstGraph);
//check second name is not there
boolean expThrown = false;
try {
Graph g = provider.getGraph(name1);
} catch(NoSuchEntityException nses) {
expThrown = true;
}
assertTrue(expThrown);