@Test
public void testLinkActionSetTarget() {

    AbstractHyperlinkAction<Object> linkAction = createEmptyLinkAction();
    linkAction.setVisited(true);
    JXHyperlink hyperlink = new JXHyperlink(linkAction);
    Object target = new Object();
    linkAction.setTarget(target);
    assertEquals(linkAction.getName(), hyperlink.getText());
    assertFalse(hyperlink.isClicked());
}