void () { final String text = "<a></a>"; final String name = "test.xhtml"; XmlTag rootTag = createTag(name, text); TextRange textRange = rootTag.getValue().getTextRange(); assertEquals(3, textRange.getStartOffset()); assertEquals(3, textRange.getEndOffset()); }