### Question:
MultipleIndexPopulator implements IndexPopulator { void flipAfterPopulation( boolean verifyBeforeFlipping ) { for ( IndexPopulation population : populations ) { try { population.scanCompleted(); population.flip( verifyBeforeFlipping ); } catch ( Throwable t ) { fail( population, t ); } } } MultipleIndexPopulator( IndexStoreView storeView, LogProvider logProvider, EntityType type, SchemaState schemaState ); @Override void create(); @Override void drop(); @Override void add( Collection<? extends IndexEntryUpdate<?>> updates ); void fail( Throwable failure ); @Override void verifyDeferredConstraints( NodePropertyAccessor accessor ); @Override MultipleIndexUpdater newPopulatingUpdater( NodePropertyAccessor accessor ); @Override void close( boolean populationCompletedSuccessfully ); @Override void markAsFailed( String failure ); @Override void includeSample( IndexEntryUpdate<?> update ); @Override IndexSample sampleResult(); @Override void scanCompleted( PhaseTracker phaseTracker ); void cancel(); static final String QUEUE_THRESHOLD_NAME; static final String BATCH_SIZE_NAME; }### Answer:
@Test public void testFlipAfterPopulation() throws FlipFailedKernelException { IndexPopulator indexPopulator1 = createIndexPopulator(); IndexPopulator indexPopulator2 = createIndexPopulator(); FlippableIndexProxy flipper1 = addPopulator( indexPopulator1, 1 ).flipper; FlippableIndexProxy flipper2 = addPopulator( indexPopulator2, 2 ).flipper; multipleIndexPopulator.flipAfterPopulation( false ); verify( flipper1 ).flip( any( Callable.class ), any( FailedIndexProxyFactory.class ) ); verify( flipper2 ).flip( any( Callable.class ), any( FailedIndexProxyFactory.class ) ); }