@Test
public void testUseFirstAvailableTemporaryFolder() throws Exception
{

    createUser("", "fr");
    createUser("", "fred");
    createFolder("Temporary1");
    createFolder("Temporary2");
    createFolder("Temporary3");
    
    // Don't delete the temporary folder
    homeFolderProviderSynchronizer.setKeepEmptyParents("true");
    
    moveUserHomeFolders();
    assertTrue("The existing Temporary1 folder should still exist", exists("Temporary1"));
    assertTrue("The existing Temporary2 folder should still exist", exists("Temporary2"));
    assertTrue("The existing Temporary3 folder should still exist", exists("Temporary3"));
    assertTrue("The existing Temporary4 folder should still exist", exists("Temporary4"));
}