public void givenGtAndOrderByDescendingQueryWhenExecutedThenReturnCorrect()
throws EntityFinderException
{
QueryBuilder<Person> qb = qbf.newQueryBuilder( Person.class );
// should return all Persons born after 1973 (Ann and Joe Doe) sorted descending by name
Person person = templateFor( Person.class );
Query<Person> query = qb.where(
gt( person.yearOfBirth(), 1973 )
).newQuery( Network.persons() );
query.orderBy( orderBy( person.name(), OrderBy.Order.DESCENDING ) );
verifyOrderedResults( query, "Vivian Smith", "Joe Doe", "Ann Doe" );
}