@Test
public void testListeningVisited() {

   AbstractHyperlinkAction<Object> linkAction = createEmptyLinkAction();
   JXHyperlink hyperlink = new JXHyperlink(linkAction);
   // sanity: both are expected to be false
   assertEquals(linkAction.isVisited(), hyperlink.isClicked());
   assertFalse(linkAction.isVisited());
   linkAction.setVisited(!linkAction.isVisited());
   assertEquals(linkAction.isVisited(), hyperlink.isClicked());
}