Query q = new Query();
q.from(new FromItem(table1).setAlias("c"));
q.select(table1.getColumns());
OrderByItem countryOrderBy = new OrderByItem(q.getSelectClause().getItem(2), Direction.DESC);
OrderByItem nameOrderBy = new OrderByItem(q.getSelectClause().getItem(1));
q.orderBy(countryOrderBy, nameOrderBy);
assertEquals(
"SELECT c.contributor_id, c.name, c.country FROM MetaModelSchema.contributor c ORDER BY c.country DESC, c.name ASC",
q.toString());