public void testLaunchedWithAmend() throws Exception {
Repository repository = lookupRepository(repositoryFile);
RevCommit oldHeadCommit = TestUtil.getHeadCommit(repository);
commitOneFileChange("Again another Change");
ObjectId headCommitId = TestUtil.getHeadCommit(repository).getId();
NoFilesToCommitPopup noFilesToCommitPopup = CommitDialogTester
.openCommitDialogExpectNoFilesToCommit(PROJ1);
CommitDialogTester commitDialogTester = noFilesToCommitPopup.confirmPopup();
assertTrue(commitDialogTester.getCommitMessage().indexOf("Change-Id") > 0);
assertTrue(commitDialogTester.getCommitMessage().indexOf("Signed-off-by") > 0);
assertTrue(commitDialogTester.getAmend());
assertTrue(commitDialogTester.getSignedOff());
assertTrue(commitDialogTester.getInsertChangeId());