@Test
public void testQueryWithGraphs() throws Exception {

  String query1 = "SELECT * { GRAPH <http://sindice.com> { ?a ?b ?c } ?s ?p ?o  }";
  String processed = pre.process(query1);
  final String[] vars = filter(ASTVarGenerator.getCurrentVarNames(),
          "a", "b", "c", "s", "p", "o");
  assertEquals(1, vars.length);
  assertEquals("SELECT *\nWHERE {\nGRAPH ?" + vars[0]
          + " {\n  ?a ?b ?c .\n}\n  ?s ?p ?o .\n  ?" + vars[0] + " <"
          + SindicePreProcessing.isPartOf.getValue()
          + "> <http://sindice.com> .\n}\n", processed);
}