@Test
public void testFileHandlesReleased() {
//We initialize the SearchFactory in the test itself as we want to test it's state *after* shutdown
searchFactory = initializeSearchFactory();
//extract the directories now, as they won't be available after SearchFactory#close :
FileMonitoringDirectory directoryOne = getDirectory( "index1" );
FileMonitoringDirectory directoryTwo = getDirectory( "index2" );
try {
doSomeOperations();
assertDirectoryOpen( directoryOne );
assertDirectoryOpen( directoryTwo );
if ( nrtNotEnabled() ) {