@Test
public void script20()
throws EntityFinderException
{
// should return all Persons born after 1973 (Ann and Joe Doe) sorted descending by name
Person person = templateFor( Person.class );
Iterable<EntityReference> entities = entityFinder.findEntities(
Person.class,
gt( person.yearOfBirth(), 1973 ),
new OrderBy[]
{
orderBy( person.name(), OrderBy.Order.DESCENDING )
},
NO_FIRST_RESULT, NO_MAX_RESULTS,
NO_VARIABLES );
assertNames( false, entities, JOE, ANN );
}