@Test
  void pathNaming() {
    OqlGenerator generator = OqlGenerator.of("/myRegion", path -> path.toStringPath() + "1");
    Expression type = toExpression(reservedWords.type);
    Expression value = toExpression(reservedWords.value);
    Expression select = toExpression(reservedWords.select);
    check(generator.generate(Query.of(Person.class).addProjections(type))
            .oql()).is("SELECT type1 FROM /myRegion");

    check(generator.generate(Query.of(Person.class).addProjections(type, value))
            .oql()).is("SELECT type1, value1 FROM /myRegion");

    check(generator.withoutBindVariables().generate(Query.of(Person.class)
            .addProjections(type, value)
            .withFilter(Expressions.binaryCall(Operators.EQUAL, select, Expressions.constant(42))))
            .oql()).is("SELECT type1, value1 FROM /myRegion WHERE select1 = 42");

    check(generator.generate(Query.of(Person.class).addProjections(type, value).addGroupBy(type))
            .oql()).is("SELECT type1, value1 FROM /myRegion GROUP BY type1");

    check(generator.generate(Query.of(Person.class)
            .addGroupBy(type)
            .addCollations(Collections.singleton(Collation.of(type)))
            .addProjections(type, value))
            .oql()).is("SELECT type1, value1 FROM /myRegion GROUP BY type1 ORDER BY type1");

  }
Check generated OQL out of {@link Query}
criteria/geode/test/org/immutables/criteria/geode/OqlGeneratorTest.java