Issue loadedIssueWithJournals2 = issueManager.getIssueById(newIssue.getId(),
Include.journals);
assertEquals(1, loadedIssueWithJournals2.getJournals()
.size());
Journal journalItem = loadedIssueWithJournals2.getJournals().iterator().next();
assertEquals(commentDescribingTheUpdate, journalItem.getNotes());
User ourUser = IntegrationTestHelper.getOurUser();
// can't compare User objects because either of them is not
// completely filled
assertEquals(ourUser.getId(), journalItem.getUser().getId());
assertEquals(ourUser.getFirstName(), journalItem.getUser()
.getFirstName());
assertEquals(ourUser.getLastName(), journalItem.getUser()
.getLastName());
assertEquals(1, journalItem.getDetails().size());
final JournalDetail journalDetail = journalItem.getDetails().get(0);
assertEquals("new subject", journalDetail.getNewValue());
assertEquals("subject", journalDetail.getName());
assertEquals("attr", journalDetail.getProperty());
Issue loadedIssueWithoutJournals = issueManager.getIssueById(newIssue.getId());