class JellyHyperlinkProvider implements HyperlinkProviderExt {

    @Override public int[] getHyperlinkSpan(Document doc, int offset, HyperlinkType type) {
        return hyperlinkSpan(doc, offset);
    }

}

class JellyHyperlinkProviderTest {

    private Document doc;

    @Test public void getHyperlinkSpan() throws Exception {

        assertEquals("f:entry", textFrom(JellyHyperlinkProvider.hyperlinkSpan(doc, offsetOf("ntry title=\"${"))));
        assertEquals("f:repeatableDeleteButton", textFrom(JellyHyperlinkProvider.hyperlinkSpan(doc, offsetOf("peatableD"))));
        assertEquals("f:textbox", textFrom(JellyHyperlinkProvider.hyperlinkSpan(doc, offsetOf("f:textbox"))));
        assertEquals("p:config-trigger", textFrom(JellyHyperlinkProvider.hyperlinkSpan(doc, offsetOf("ig-tr"))));
    }

}