@Test
public void testParseIssueLink() throws Exception {

    IssueLinkJsonParser parser = new IssueLinkJsonParser();
    final IssueLink issueLink = parser.parse(ResourceUtil.getJsonObjectFromResource("/json/issueLink/valid.json"));
    assertEquals(new IssueLinkType("Duplicate", "duplicates", IssueLinkType.Direction.OUTBOUND), issueLink.getIssueLinkType());
    assertEquals("TST-2", issueLink.getTargetIssueKey());
    assertEquals(TestUtil.toUri("http://localhost:8090/jira/rest/api/latest/issue/TST-2"), issueLink.getTargetIssueUri());
}