@Test
public void testOverrideProvider() throws Exception
{

    NodeRef person = createUser("a/b/c", "fred");
    moveUserHomeFolders();
    assertHomeFolderLocation("fred", "fr/fred");
    
    homeFolderProviderSynchronizer.setOverrideHomeFolderProviderName(
            testHomeFolderProviderName);
    moveUserHomeFolders();
    assertHomeFolderLocation("fred", "a/b/c/fred");
    String providerName = (String) nodeService.getProperty(person,
            ContentModel.PROP_HOME_FOLDER_PROVIDER);
    assertEquals(testHomeFolderProviderName , providerName);
}