@Test
public void testSetURI() {

    // This test will not work in a headless configuration.
    if (GraphicsEnvironment.isHeadless()) {
        LOG.fine("cannot run ui test - headless environment");
        return;
    }
    JXHyperlink hyperlink = new JXHyperlink();
    hyperlink.setURI(null);
    assertNotNull(hyperlink.getAction());
    assertTrue(hyperlink.getAction() instanceof HyperlinkAction);
}