}
}
log.log("");
// all required data is provided, let's create issue
final IssueInput issueInput = builder.build();
final BasicIssue basicCreatedIssue = issueClient.createIssue(issueInput).claim();
assertNotNull(basicCreatedIssue);
final Issue createdIssue = issueClient.getIssue(basicCreatedIssue.getKey()).claim();
assertNotNull(createdIssue);
log.log("Created new issue successfully, key: " + basicCreatedIssue.getKey());
// assert few fields
IssueInputBuilder actualBuilder = new IssueInputBuilder(createdIssue.getProject(), createdIssue
.getIssueType(), createdIssue.getSummary())
.setPriority(createdIssue.getPriority())
.setReporter(createdIssue.getReporter())
.setAssignee(createdIssue.getAssignee())
.setDescription(createdIssue.getDescription());
final Collection<FieldInput> actualValues = actualBuilder.build().getFields().values();
final Collection<FieldInput> expectedValues = issueInput.getFields().values();
assertThat(expectedValues, hasItems(toArray(actualValues, FieldInput.class)));
}