file.setFileName("attachment02.dat");
files.add(file);
file = new ZendeskFile("src/test/resources/attachments/attachment03.dat");
file.setFileName("attachment03.dat");
files.add(file);
Upload upload = attachments.uploadAttachments(files);
Assert.assertEquals(upload.getAttachments().size(), 3);
Assert.assertEquals(upload.getAttachments().get(0).getFileName(), "attachment01.dat");
Assert.assertEquals(upload.getAttachments().get(0).getSize().intValue(), 2048);
Assert.assertEquals(upload.getAttachments().get(1).getFileName(), "attachment02.dat");
Assert.assertEquals(upload.getAttachments().get(1).getSize().intValue(), 4096);
Assert.assertEquals(upload.getAttachments().get(2).getFileName(), "attachment03.dat");
Assert.assertEquals(upload.getAttachments().get(2).getSize().intValue(), 16384);
}