for (WorkspaceEntry wsEntry : rblog.getOriginalRepositoryEntry().getWorkspaceEntries())
{
workspacesMapping.put(wsEntry.getName(), new File(backups.get(wsEntry.getName()).getLogFilePath()));
}
JobExistingRepositorySameConfigRestore job =
new JobExistingRepositorySameConfigRestore(repositoryService, backupManagerImpl, rblog
.getOriginalRepositoryEntry(), workspacesMapping, new File(rblog.getLogFilePath()));
job.run();
assertEquals(JobRepositoryRestore.REPOSITORY_RESTORE_SUCCESSFUL, job.getStateRestore());
checkConent(repositoryName);
}