final Issue issue = issueClient.getIssue("TST-4", pm);
assertFalse(issue.getAttachments().iterator().hasNext());
final AttachmentInput[] attachmentInputs = new AttachmentInput[3];
for (int i = 1; i <= 3; i++) {
attachmentInputs[i - 1] = new AttachmentInput("my-test-file-" + i + ".txt", new ByteArrayInputStream(("content-of-the-file-" + i).getBytes("UTF-8")));
}
issueClient.addAttachments(pm, issue.getAttachmentsUri(), attachmentInputs);
final Issue issueWithAttachments = issueClient.getIssue("TST-4", pm);
final Iterable<Attachment> attachments = issueWithAttachments.getAttachments();