// build issue input
final String summary = "My new issue!";
// create
final IssueInput issueInput = new IssueInputBuilder(project, issueType, summary).build();
final BasicIssue basicCreatedIssue = issueClient.createIssue(issueInput, pm);
assertNotNull(basicCreatedIssue.getKey());
// get issue and check if everything was set as we expected
final Issue createdIssue = issueClient.getIssue(basicCreatedIssue.getKey(), pm);
assertNotNull(createdIssue);
assertEquals(basicCreatedIssue.getKey(), createdIssue.getKey());
assertEquals(project.getKey(), createdIssue.getProject().getKey());
assertEquals(issueType.getId(), createdIssue.getIssueType().getId());
assertEquals(summary, createdIssue.getSummary());
}