assertEquals("transparent-png.png", lastAttachment.getFilename());
// worklogs
final Iterable<Worklog> worklogs = issue.getWorklogs();
assertEquals(5, Iterables.size(worklogs));
final Worklog worklog = Iterables.get(worklogs, 2);
assertEquals(new Worklog(toUri("http://localhost:8090/jira/rest/api/latest/worklog/10012"),
toUri("http://localhost:8090/jira/rest/api/latest/issue/TST-2"), TestConstants.USER1,
TestConstants.USER1, "a worklog viewable just by jira-users",
toDateTime("2010-08-17T16:53:15.848+0200"), toDateTime("2010-08-17T16:53:15.848+0200"),
toDateTime("2010-08-11T16:52:00.000+0200"), 3, Visibility.group("jira-users")), worklog);
final Worklog worklog3 = Iterables.get(worklogs, 3);
assertEquals("", worklog3.getComment());
// comments
assertEquals(3, Iterables.size(issue.getComments()));
final Comment comment = issue.getComments().iterator().next();
assertEquals(Visibility.Type.ROLE, comment.getVisibility().getType());