@FixFor( "MODE-1095" )
@Test
public void shouldBeAbleToCreateAndExecuteJcrSql2QueryWithOrderByUsingColumnWithSelectStar() throws RepositoryException {

    String sql = "SELECT * FROM [car:Car] WHERE [car:year] < 2009 ORDER BY [car:year]";
    Query query = session.getWorkspace().getQueryManager().createQuery(sql, Query.JCR_SQL2);
    QueryResult result = query.execute();
    String[] columnNames = carColumnNames("car:Car");
    validateQuery().rowCount(13).noWarnings().hasColumns(columnNames).validate(query, result);
}