@Test
public void testAddOrderBy() {

	solutionModifier.addOrderBy(Var.alloc("orderBy"));
	List<SortCondition> sc = query.getOrderBy();
	assertEquals("Wrong number of conditions", 1, sc.size());
	assertEquals("Wrong value", sc.get(0).expression.asVar(), Var.alloc("orderBy"));
	solutionModifier.addOrderBy(Var.alloc("orderBy2"));
	sc = query.getOrderBy();
	assertEquals("Wrong number of conditions", 2, sc.size());
	assertEquals("Wrong value", sc.get(0).expression.asVar(), Var.alloc("orderBy"));
	assertEquals("Wrong value", sc.get(1).expression.asVar(), Var.alloc("orderBy2"));
}