QueryBuilder<Person> qb = qbf.newQueryBuilder( Person.class );
// should return all Persons sorted by name of the city they were born, and then by year they were born
Person person = templateFor( Person.class );
Query<Person> query = qb.newQuery( Network.persons() );
query.orderBy( orderBy( person.placeOfBirth().get().name() ),
orderBy( person.yearOfBirth() ) );
verifyOrderedResults( query, "Ann Doe", "Joe Doe", "Vivian Smith", "Jack Doe" );
}
@Test
public void givenMatchesQueryWhenExecutedThenReturnCorrect()