log("Document [" + url + "]");
Object document = nav.getDocument(url);
XPath contextpath = new BaseXPath("/", nav);
log("Initial Context :: " + contextpath);
List list = contextpath.selectNodes(document);
SimpleVariableContext varContext = new SimpleVariableContext();
varContext.setVariableValue(null, "foobar", "foobar");
varContext.setVariableValue(null, "foo", "foo");
getContextSupport().setVariableContext(varContext);
Iterator iter = list.iterator();
while (iter.hasNext()) {
Object context = iter.next();
assertValueOfXPath("foobar", context, "$foobar");