@Test
public void testGraphGraphPattern()
throws Exception {

  final String q = "SELECT * { ?s1 <knows> ?o1 . GRAPH ?POF { ?o ?p ?s } ?a ?b ?p }";
  ast = SyntaxTreeBuilder.parseQuery(q);
  final String expected = "QueryContainer\n" +
                          " SelectQuery\n" +
                          "  Select ( * )\n" +
                          "  WhereClause\n" +
                          "   GraphPatternGroup\n" +
                          "    GraphGraphPattern\n" +
                          "     Var (POF)\n" +
                          "     GraphPatternGroup\n" +
                          "      BasicGraphPattern\n" +
                          "       TriplesSameSubjectPath\n" +
                          "        Var (o)\n" +
                          "        PropertyListPath\n" +
                          "         Var (p)\n" +
                          "         ObjectList\n" +
                          "          Var (s)\n" +
                          "    BasicGraphPattern\n" +
                          "     TriplesSameSubjectPath\n" +
                          "      Var (a)\n" +
                          "      PropertyListPath\n" +
                          "       Var (b)\n" +
                          "       ObjectList\n" +
                          "        Var (p)";
  RecommendationScopeProcessor.process(ast);
  assertEquals(expected, ast.dump(""));
}