TwineLinkLinkRefProcessor implements LinkRefProcessor { @Override public Node createNode(final BasedSequence nodeChars) { return new TwineLink(nodeChars); }  @Override boolean getWantExclamationPrefix(); @Override int getBracketNestingLevel(); @Override boolean isMatch(final BasedSequence nodeChars); @Override Node createNode(final BasedSequence nodeChars); @Override BasedSequence adjustInlineText(final Document document, final Node node); @Override boolean allowDelimiters(final BasedSequence chars, final Document document, final Node node); @Override void updateNodeElements(final Document document, final Node node);  }
@Test public void createNode() { TwineLinkLinkRefProcessor processor = new TwineLinkLinkRefProcessor(); CharSubSequence sequence = CharSubSequence.of("[[a matching link]]"); Node result = processor.createNode(sequence); assertTrue(result instanceof TwineLink); }