XPath last = new XPath("last()", null, null, XPath.SELECT);
tag.prepare();
XPathContext context = tag.getContext();
tag.hasNext();
tag.next();
Assert.assertEquals("3", last.execute(context, context.getCurrentNode(), null).str());
Assert.assertEquals("one", dot.execute(context, context.getCurrentNode(), null).str());
Assert.assertEquals("1", position.execute(context, context.getCurrentNode(), null).str());
tag.hasNext();
tag.next();
Assert.assertEquals("two", dot.execute(context, context.getCurrentNode(), null).str());