{
// Use blank nodes (will expose any problems in serialization when spill occurs)
Triple t = new Triple(com.hp.hpl.jena.graph.NodeFactory.createAnon(),p,o2);
Triple t2 = new Triple(com.hp.hpl.jena.graph.NodeFactory.createAnon(),p,o1);
GraphStore gStore = getEmptyGraphStore() ;
// Set the threshold to in order to force spill to disk
gStore.getContext().set(ARQ.spillToDiskThreshold, 0L) ;
defaultGraphData(gStore, data(triple1, triple2, t)) ;
namedGraphData(gStore, graphIRI, data(t2));
UpdateCopy copy = new UpdateCopy(Target.DEFAULT, Target.create(graphIRI));
UpdateAction.execute(copy, gStore);
assertFalse(graphEmpty(gStore.getDefaultGraph())) ;
assertFalse(graphEmpty(gStore.getGraph(graphIRI))) ;
assertTrue(graphContains(gStore.getGraph(graphIRI), triple1)) ;
assertTrue(graphContains(gStore.getGraph(graphIRI), triple2)) ;
assertTrue(graphContains(gStore.getGraph(graphIRI), t)) ;
assertFalse(graphContains(gStore.getGraph(graphIRI), t2)) ;
assertTrue(gStore.getDefaultGraph().isIsomorphicWith(gStore.getGraph(graphIRI)));
}