replay(pageContext);
XPath dot = new XPath(".", null, null, XPath.SELECT);
XPath position = new XPath("position()", null, null, XPath.SELECT);
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());
Assert.assertEquals("2", position.execute(context, context.getCurrentNode(), null).str());
tag.hasNext();
tag.next();
Assert.assertEquals("three", dot.execute(context, context.getCurrentNode(), null).str());
Assert.assertEquals("3", position.execute(context, context.getCurrentNode(), null).str());
verify(pageContext);
}