@Test
@SuppressWarnings("deprecation")
public void testExtendsAbstractHomeFolderProvider() throws Exception
{

    // Should work through the V2Adaptor
    final String name = "v1Provider";
    AbstractHomeFolderProvider v1Provider = new UIDBasedHomeFolderProvider();
    v1Provider.setBeanName(name);
    v1Provider.setHomeFolderManager(homeFolderManager);
    v1Provider.setOnCreatePermissionsManager(largeHomeFolderProvider.getOnCreatePermissionsManager());
    v1Provider.setOnReferencePermissionsManager(largeHomeFolderProvider.getOnReferencePermissionsManager());
    v1Provider.setOwnerOnCreate(largeHomeFolderProvider.getOwner());
    v1Provider.setPath(largeHomeFolderProvider.getRootPath());
    v1Provider.setServiceRegistry(serviceRegistry);
    v1Provider.setStoreUrl(largeHomeFolderProvider.getStoreUrl());
    v1Provider.setTenantService(tenantService);
    v1Provider.afterPropertiesSet();
    createUser("a/b/c", "fred");
    
    homeFolderProviderSynchronizer.setOverrideHomeFolderProviderName(name);
    moveUserHomeFolders();
    assertHomeFolderLocation("fred", "fred");
}