SearchFactoryIntegrator searchFactory = (SearchFactoryIntegrator) builder.getSearchFactory();
EntityIndexBinding snowIndexBinder = searchFactory.getIndexBinding( SnowStorm.class );
IndexManager[] indexManagers = snowIndexBinder.getIndexManagers();
assertThat( indexManagers.length ).isEqualTo( 1 );
assertThat( indexManagers[0] ).isInstanceOf( DirectoryBasedIndexManager.class );
DirectoryBasedIndexManager dbBasedManager = (DirectoryBasedIndexManager)indexManagers[0];
assertThat( dbBasedManager.getDirectoryProvider() ).isInstanceOf( CloseCheckingDirectoryProvider.class );
directoryProvider = (CloseCheckingDirectoryProvider) dbBasedManager.getDirectoryProvider();
assertThat( directoryProvider.isInitialized() ).isTrue();
assertThat( directoryProvider.isStarted() ).isTrue();
assertThat( directoryProvider.isStopped() ).isFalse();
}
finally {