@Test
public void testDisjointGGPs()
throws Exception {

  final String q = "SELECT * { ?s ?POF ?o . { SELECT * { ?s2 a ?Person } } }";
  ast = SyntaxTreeBuilder.parseQuery(q);
  final String expected = "QueryContainer\n" +
                          " SelectQuery\n" +
                          "  Select ( * )\n" +
                          "  WhereClause\n" +
                          "   GraphPatternGroup\n" +
                          "    BasicGraphPattern\n" +
                          "     TriplesSameSubjectPath\n" +
                          "      Var (s)\n" +
                          "      PropertyListPath\n" +
                          "       Var (POF)\n" +
                          "       ObjectList\n" +
                          "        Var (o)";
  RecommendationScopeProcessor.process(ast);
  assertEquals(expected, ast.dump(""));
}