@Test
public void testReplaceWithSelectQueryPOF()
throws Exception {

  final String qConstruct = "CONSTRUCT { ?s a ?o } WHERE { ?s < ?o }";
  final String qAsk = "ASK WHERE { ?s < ?o }";
  final String qDescribe = "DESCRIBE ?s WHERE { ?s < ?o }";
  final String expectedAst = "QueryContainer\n" +
                              " SelectQuery\n" +
                              "  Select\n" +
                              "   ProjectionElem\n" +
                              "    Var (POF)\n" +
                              "  WhereClause\n" +
                              "   GraphPatternGroup\n" +
                              "    BasicGraphPattern\n" +
                              "     TriplesSameSubjectPath\n" +
                              "      Var (s)\n" +
                              "      PropertyListPath\n" +
                              "       Var (POF)\n" +
                              "       ObjectList\n" +
                              "        Var (o)";
  ast = SyntaxTreeBuilder.parseQuery(qAsk);
  PointOfFocusProcessor.process(ast);
  assertEquals(expectedAst, ast.dump(""));
  ast = SyntaxTreeBuilder.parseQuery(qConstruct);
  PointOfFocusProcessor.process(ast);
  assertEquals(expectedAst, ast.dump(""));
  ast = SyntaxTreeBuilder.parseQuery(qDescribe);
  PointOfFocusProcessor.process(ast);
  assertEquals(expectedAst, ast.dump(""));
}