assertTrue(stagingViewTester.getCommitMessage().indexOf("Change-Id") > 0);
assertTrue(stagingViewTester.getCommitMessage()
.indexOf("Signed-off-by") > 0);
assertTrue(stagingViewTester.getSignedOff());
assertTrue(stagingViewTester.getInsertChangeId());
stagingViewTester.commit();
headCommit = TestUtil.getHeadCommit(repository);
if (headCommitId.equals(headCommit.getId()))
fail("There is no new commit");
assertEquals(oldHeadCommit, headCommit.getParent(0));
assertTrue(headCommit.getFullMessage().indexOf(changeId) > 0);