private SingleEntityQueryBuilder<Query> queryBuilder;
@Before
public void setupQueryBuilder() {
SearchFactoryIntegrator searchFactory = factoryHolder.getSearchFactory();
QueryContextBuilder queryContextBuilder = searchFactory.buildQueryBuilder();
EntityNamesResolver nameResolver = MapBasedEntityNamesResolver.forClasses( IndexedEntity.class );
PropertyHelper propertyHelper = new ClassBasedLucenePropertyHelper( searchFactory, nameResolver );
queryBuilder = SingleEntityQueryBuilder.getInstance(
new LucenePredicateFactory( queryContextBuilder, nameResolver ),