String queryStr1 = "SELECT * WHERE { GRAPH <"+context1.stringValue()+"> { ?X ?P ?Y } }";
TupleQuery query1 = con.prepareTupleQuery(QueryLanguage.SPARQL, queryStr1);
// workaround for a bug in sesame
DatasetImpl ds = new DatasetImpl();
ds.addDefaultGraph(context1);
ds.addNamedGraph(context1);
ds.addDefaultRemoveGraph(context1);
ds.setDefaultInsertGraph(context1);
query1.setDataset(ds);
List<BindingSet> result1 = Iterations.asList(query1.evaluate());
Assert.assertEquals(2, result1.size());