Query query = queryBuilder.all().createQuery();
FieldSelectorLeakingReaderProvider.resetFieldSelector();
FullTextSession fullTextSession = Search.getFullTextSession( session );
FullTextQuery fullTextQuery = fullTextSession.createFullTextQuery( query, Location.class );
fullTextQuery.setSort( new Sort( new SortField( "description", SortField.Type.STRING ) ) ); // to avoid loading in document order -- too easy
List<Location> locations = fullTextQuery.list();
FieldSelectorLeakingReaderProvider.assertFieldSelectorDisabled();
Assert.assertEquals( NUM_LOCATIONS, locations.size() );
for ( Location location : locations ) {
int id = location.getId();
Assert.assertEquals( String.valueOf( id ) + "42", location.getDescription() );