@Test
public void script21()
throws EntityFinderException
{
// should return all Persons sorted name of the city they were born
Person person = templateFor( Person.class );
Iterable<EntityReference> entities = entityFinder.findEntities(
Person.class,
ALL,
new OrderBy[]
{
orderBy( person.placeOfBirth().get().name() ), orderBy( person.name() )
},
NO_FIRST_RESULT, NO_MAX_RESULTS,
NO_VARIABLES );
assertNames( false, entities, ANN, JOE, JACK );
}