Assert.assertEquals(upload.getAttachments().get(2).getSize().intValue(), 16384);
}
@Test
public void testUploadOfLargeFile() throws Exception {
ZendeskApi api = new ZendeskApi(URL, USER, PASSWORD);
Attachments attachments = api.getAttachments();
ZendeskFile file = new ZendeskFile("src/test/resources/attachments/attachment04.dat");
file.setFileName("attachment04.dat");
Upload upload = attachments.uploadAttachment(file);
Assert.assertNotNull(upload);
Assert.assertEquals(upload.getAttachments().size(), 1);