destRepo = new File(ResourcesPlugin.getWorkspace()
.getRoot().getLocation().toFile(), "test2");
importWizard.openWizard();
RepoPropertiesPage repoProperties = importWizard.openRepoPropertiesPage();
RepoRemoteBranchesPage remoteBranches = repoProperties
.nextToRemoteBranches(r.getUri());
remoteBranches.deselectAllBranches();
remoteBranches
.assertErrorMessage("At least one branch must be selected.");
remoteBranches.assertNextIsDisabled();
remoteBranches.selectBranches(SampleTestRepository.FIX);
remoteBranches.assertNextIsEnabled();
WorkingCopyPage workingCopy = remoteBranches.nextToWorkingCopy();
workingCopy.setDirectory(destRepo.toString());
workingCopy.assertBranch(SampleTestRepository.FIX);
workingCopy.setRemoteName("src");
workingCopy.waitForCreate();