private void assertExclusiveIsEnabled(IndexManagerHolder allIndexesManager, String indexName, boolean expectExclusive) {
DirectoryBasedIndexManager indexManager = (DirectoryBasedIndexManager) allIndexesManager.getIndexManager( indexName );
BackendQueueProcessor backendQueueProcessor = indexManager.getBackendQueueProcessor();
assertEquals( LuceneBackendQueueProcessor.class, backendQueueProcessor.getClass() );
LuceneBackendQueueProcessor backend = (LuceneBackendQueueProcessor) backendQueueProcessor;
AbstractWorkspaceImpl workspace = backend.getIndexResources().getWorkspace();
if ( expectExclusive ) {
assertEquals( ExclusiveIndexWorkspaceImpl.class, workspace.getClass() );
}
else {
assertEquals( SharedIndexWorkspaceImpl.class, workspace.getClass() );
}
}