EntityIndexBinding indexBindingForEntity = searchFactoryImplementor.getIndexBinding( aClass );
assertNotNull( indexBindingForEntity );
IndexManager[] indexManagers = indexBindingForEntity.getIndexManagers();
assertEquals( 1, indexManagers.length );
DirectoryBasedIndexManager indexManager = (DirectoryBasedIndexManager) indexManagers[0];
DirectoryProvider directoryProvider = indexManager.getDirectoryProvider();
if ( !( directoryProvider instanceof RAMDirectoryProvider ) ) {
// can't use Assertion in a separate thread
throw new SearchException( "Configuration lost: expected RAM directory" );
}