Mockito.reset(indexerLifecycleListener);
markEventCounts();
indexerDefinition = main.getIndexerModel().getIndexer("indexer1");
indexerDefinitionBuilder = new IndexerDefinitionBuilder().startFrom(indexerDefinition);
indexerDefinitionBuilder.batchIndexingState(IndexerDefinition.BatchIndexingState.BUILD_REQUESTED);
lock = main.getIndexerModel().lockIndexer(indexerDefinition.getName());
main.getIndexerModel().updateIndexer(indexerDefinitionBuilder.build(), lock);
main.getIndexerModel().unlockIndexer(lock);
waitOnEventsProcessed(1);