ApacheDS apacheDS = ( ApacheDS ) factory.getBean( "apacheDS" );
File workingDirFile = new File( configF.getParentFile(), "work" );
apacheDS.getDirectoryService().setWorkingDirectory( workingDirFile );
// Now, launch the server, and check that the ObjectClass index has been created in OS' tmp directory
apacheDS.startup();
File tmpOCdb = new File( tmpDir, "dc.db" );
assertTrue( tmpOCdb.exists() );
File tmpOClg = new File( tmpDir, "dc.lg" );