### Question:
MultipleIndexPopulator implements IndexPopulator { boolean hasPopulators() { return !populations.isEmpty(); } 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 testHasPopulators() throws FlipFailedKernelException { assertFalse( multipleIndexPopulator.hasPopulators() ); addPopulator( createIndexPopulator(), 42 ); assertTrue( multipleIndexPopulator.hasPopulators() ); }