Transition transitionFound = TestUtil.getTransitionByName(transitions, "Estimate");
DateTime now = new DateTime();
client.getIssueClient().transition(issue, new TransitionInput(transitionFound.getId(), comment)).claim();
final Issue changedIssue = client.getIssueClient().getIssue("TST-1").claim();
final Comment lastComment = Iterables.getLast(changedIssue.getComments());
assertEquals(comment.getBody(), lastComment.getBody());
assertEquals(IntegrationTestUtil.USER_ADMIN, lastComment.getAuthor());
assertEquals(IntegrationTestUtil.USER_ADMIN, lastComment.getUpdateAuthor());
assertEquals(lastComment.getCreationDate(), lastComment.getUpdateDate());
assertTrue(lastComment.getCreationDate().isAfter(now) || lastComment.getCreationDate().isEqual(now));
assertEquals(comment.getVisibility(), lastComment.getVisibility());
}