tenantManager.createTenant( systemTenant, MAIN_TENANT_1, adminAuthorityName, tenantAuthenticatedAuthorityName,
"Anonymous" );
userRoleDao.createUser( mainTenant_1, "admin", "password", "",
new String[]{adminAuthorityName, tenantAuthenticatedAuthorityName} );
login( "admin", mainTenant_1, new String[]{adminAuthorityName, tenantAuthenticatedAuthorityName} );
JcrRepositoryDumpToFile dumpToFile =
new JcrRepositoryDumpToFile( testJcrTemplate, jcrTransactionTemplate, repositoryAdminUsername,
"c:/build/testrepo_3", Mode.CUSTOM );
dumpToFile.execute();
metadataRepositoryLifecycleManager.newTenant( mainTenant_1 );
String metadataPath = ClientRepositoryPaths.getEtcFolderPath() + "/metadata";
RepositoryFile metadataRepositoryPath = repo.getFile( metadataPath );
assertTrue( metadataRepositoryPath.getPath() != null );