assertEquals("SELECT firstname, lastname UNION SELECT a, b", query.toString());
}
@Test
public void testOrderBy() {
Query query = new DefaultOrderByPath(null).orderBy(Sort.asc("firstname"));
assertEquals("ORDER BY firstname ASC", query.toString());
query = new DefaultOrderByPath(null).orderBy(Sort.asc("firstname"), Sort.desc("lastname"));
assertEquals("ORDER BY firstname ASC, lastname DESC", query.toString());
}