// create
final BasicIssue basicCreatedIssue = issueClient.createIssue(issueInputBuilder.build()).claim();
assertNotNull(basicCreatedIssue.getKey());
// get issue and check if everything was set as we expected
final Issue createdIssue = issueClient.getIssue(basicCreatedIssue.getKey()).claim();
assertNotNull(createdIssue);
assertEquals(basicCreatedIssue.getKey(), createdIssue.getKey());
assertEquals(project.getKey(), createdIssue.getProject().getKey());
assertEquals(issueType.getId(), createdIssue.getIssueType().getId());
assertEquals(summary, createdIssue.getSummary());
assertEquals(description, createdIssue.getDescription());
final User actualAssignee = createdIssue.getAssignee();
assertNotNull(actualAssignee);
assertEquals(assignee.getSelf(), actualAssignee.getSelf());
// TODO we need some users for integration tests!
assertEquals(actualAssignee.getEmailAddress(), "wojciech.seliga@spartez.com");
final Iterable<String> actualAffectedVersionsNames = EntityHelper.toNamesList(createdIssue.getAffectedVersions());
assertThat(affectedVersionsNames, containsInAnyOrder(toArray(actualAffectedVersionsNames, String.class)));
final Iterable<String> actualFixVersionsNames = EntityHelper.toNamesList(createdIssue.getFixVersions());
assertThat(fixVersionsNames, containsInAnyOrder(toArray(actualFixVersionsNames, String.class)));
assertTrue(createdIssue.getComponents().iterator().hasNext());
assertEquals(component.getId(), createdIssue.getComponents().iterator().next().getId());
// strip time from dueDate
final DateTime expectedDueDate = JsonParseUtil.parseDate(JsonParseUtil.formatDate(dueDate));
assertEquals(expectedDueDate, createdIssue.getDueDate());
final BasicPriority actualPriority = createdIssue.getPriority();
assertNotNull(actualPriority);
assertEquals(priority.getId(), actualPriority.getId());
// check value of MultiUserSelect field
final Object multiUserValue = createdIssue.getField(multiUserCustomFieldId).getValue();
// ideally this should be Iterable<User>, but for now it's just an JSONArray...
assertThat(multiUserValue, Matchers.instanceOf(JSONArray.class));
final JSONArray multiUserArray = (JSONArray) multiUserValue;
final List<String> actualMultiUserNames = Lists.newArrayListWithCapacity(multiUserArray.length());
for (int i = 0; i<multiUserArray.length(); i++) {