IndexerDefinition indexerDefinition = main.getIndexerModel().getIndexer("indexer1");
markEventCounts();
indexerDefinitionBuilder = new IndexerDefinitionBuilder().startFrom(indexerDefinition);
indexerDefinitionBuilder.incrementalIndexingState(IncrementalIndexingState.DO_NOT_SUBSCRIBE);
String lock = main.getIndexerModel().lockIndexer(indexerDefinition.getName());
main.getIndexerModel().updateIndexer(indexerDefinitionBuilder.build(), lock);
main.getIndexerModel().unlockIndexer(lock);
waitOnEventsProcessed(1);