final IssueRestClient issueClient = client.getIssueClient();
final Issue originalIssue = issueClient.getIssue("TST-7").claim();
int origNumComments = Iterables.size(originalIssue.getComments());
assertFalse(originalIssue.getIssueLinks().iterator().hasNext());
issueClient.linkIssue(new LinkIssuesInput("TST-7", "TST-6", "Duplicate", commentInput)).claim();
final Issue linkedIssue = issueClient.getIssue("TST-7").claim();
assertEquals(1, Iterables.size(linkedIssue.getIssueLinks()));
final IssueLink addedLink = linkedIssue.getIssueLinks().iterator().next();
assertEquals("Duplicate", addedLink.getIssueLinkType().getName());