fetch();
String uri = lookupRepository(childRepositoryFile).getConfig()
.getString(ConfigConstants.CONFIG_REMOTE_SECTION, "origin",
ConfigConstants.CONFIG_KEY_URL);
SWTBotShell confirm = bot.shell(NLS.bind(
UIText.FetchResultDialog_title, uri));
SWTBotTree tree = confirm.bot().tree();
String branch = tree.getAllItems()[0].getText();
assertTrue("Wrong result",
branch.contains(initialCommitId.substring(0, 7)));
confirm.close();
String newContent = getTestFileContent();
assertEquals(oldContent, newContent);
fetch();
confirm = bot.shell(NLS.bind(UIText.FetchResultDialog_title, uri));
int count = confirm.bot().tree().rowCount();
confirm.close();
assertEquals("Wrong result count", 0, count);
newContent = getTestFileContent();
assertEquals(oldContent, newContent);
SWTBotShell mergeDialog = openMergeDialog();
SWTBotTreeItem remoteBranches = mergeDialog.bot().tree()
.getTreeItem(REMOTE_BRANCHES).expand();
TestUtil.getChildNode(remoteBranches, "origin/master").select();
mergeDialog.bot().button(UIText.MergeTargetSelectionDialog_ButtonMerge)
.click();
bot.shell(UIText.MergeAction_MergeResultTitle).close();
newContent = getTestFileContent();
assertFalse(oldContent.equals(newContent));
}