Ticket ticket = new Ticket();
ticket.setSubject("My printer is on fire");
ticket.setDescription("Please send support");
ticket.setPriority(Priority.high);
List<CustomField> customFields = new ArrayList<CustomField>();
CustomField customField = new CustomField();
customField.setId(CUSTOM_FIELD_ID);
customField.setValue("testing");
customFields.add(customField);
ticket.setCustomFields(customFields);
Ticket createdTicket = API.getTickets().createTicket(ticket).getTicket();
Assert.assertNotNull(createdTicket);
Assert.assertTrue(createdTicket.getId() > 0);