assertEquals(Arrays.asList("Barbara", "John"), limitAndOffset);
}
@Test
public void ListResults() {
BooleanExpression filter = user.middleName.eq("X");
SearchResults<User> users = query().where(filter).orderBy(
user.firstName.asc()).limit(2).listResults();
List<String> asc = getFirstNames(users.getResults());
assertEquals(Arrays.asList("Anton", "Barbara"), asc);
assertEquals(4, users.getTotal());