Date date1 = DateUtils.parseDateTime("2014-02-22T19:10:03+0100");
Date date2 = DateUtils.parseDateTime("2014-02-23T19:10:03+0100");
List<User> users = Lists.<User>newArrayList(new DefaultUser().setLogin("john").setName("John"));
FieldDiffs userChange = new FieldDiffs()
.setUserLogin("john")
.setDiff("actionPlan", null, "1.0")
.setCreationDate(date1);
FieldDiffs scanChange = new FieldDiffs()
.setDiff("severity", "INFO", "BLOCKER")
.setDiff("status", "REOPEN", "RESOLVED")
.setCreationDate(date2);
when(issueChangelogService.changelog(issue)).thenReturn(new IssueChangelog(newArrayList(userChange, scanChange), users));
when(issueChangelogService.formatDiffs(userChange)).thenReturn(newArrayList("Action plan updated to 1.0"));