@FixFor( "MODE-1055" )
@Test
public void shouldNotOrderByNonExistantPropertyInCriteriaInSelectClauseOfJcrSql2Query() throws RepositoryException {

    String sql = "SELECT bogus, laughable, [car:year] FROM [nt:base] ORDER BY argle";
    Query query = session.getWorkspace().getQueryManager().createQuery(sql, Query.JCR_SQL2);
    QueryResult result = query.execute();
    String[] columnNames = {"bogus", "laughable", "car:year", "argle"};
    validateQuery().rowCount(totalNodeCount).warnings(4).hasColumns(columnNames).validate(query, result);
}