@Test
public void testGenerateWebSite() throws Exception
{

    AuthenticationUtil.setFullyAuthenticatedUser(AuthenticationUtil.getAdminUserName());
    NodeRef site = generator.generateWebSite(SITE_NAME);
    assertNotNull(site);
    NodeRef companyHome = repositoryHelper.getCompanyHome();
    NodeRef webHome = nodeService.getChildByName(companyHome, ASSOC_CATEGORIES, WebSiteRandomGenerator.WEB_SITE_HOME_NAME);
    assertNotNull(webHome);
    NodeRef actualSite= nodeService.getChildByName(webHome, ASSOC_CATEGORIES, SITE_NAME);
    assertEquals(site, actualSite);
}