final String[] names = new String[3];
final String[] contents = new String[3];
for (int i = 0; i < 3; i++) {
names[i] = UTF8_FILE_NAME + "-" + i + ".txt";
contents[i] = "content-of-the-file-" + i + " with some utf8: " + UTF8_FILE_BODY;
attachmentInputs[i] = new AttachmentInput(names[i], new ByteArrayInputStream(contents[i].getBytes("UTF-8")));
}
issueClient.addAttachments(issue.getAttachmentsUri(), attachmentInputs).claim();
final Issue issueWithAttachments = issueClient.getIssue("TST-4").claim();
final Iterable<Attachment> attachments = issueWithAttachments.getAttachments();