HyperlinkAction extends AbstractHyperlinkAction<URI> { @Override protected void installTarget() { if (visitor == null) return; super.installTarget(); updateEnabled(); } HyperlinkAction();  HyperlinkAction(Action desktopAction);  HyperlinkAction(URI uri, Action desktopAction); static HyperlinkAction createHyperlinkAction(URI uri); static HyperlinkAction createHyperlinkAction(URI uri, Action type); @Override void actionPerformed(ActionEvent e); Action getDesktopAction();  }
@Test public void testConstructorsAndCustomTargetInstall() { Object target = new Object(); final boolean visitedIsTrue = true; AbstractHyperlinkAction<Object> linkAction = new AbstractHyperlinkAction<Object>(target) { @Override public void actionPerformed(ActionEvent e) { } @Override protected void installTarget() { super.installTarget(); setVisited(visitedIsTrue); } }; assertEquals(visitedIsTrue, linkAction.isVisited()); }