ParameterizedSparqlString s = new ParameterizedSparqlString();
s.setCommandText("INSERT { ?o ?p ?s } WHERE { ?s ?p ?o }");
s.setIri("s", "_:" + bnode.getId());
UpdateRequest query = s.asUpdate();
UpdateProcessor proc = UpdateExecutionFactory.create(query, GraphStoreFactory.create(ds));
proc.execute();
// This should be true because this was present in the intial model set
// up
Assert.assertEquals(1, model.listStatements(bnode, null, (RDFNode) null).toList().size());
// This should return 0 because the INSERT should result in a new blank