log("Document [" + url + "]");
Object document = nav.getDocument(url);
XPath contextpath = new BaseXPath("/", nav);
log("Initial Context :: " + contextpath);
List list = contextpath.selectNodes(document);
SimpleNamespaceContext nsContext = new SimpleNamespaceContext();
nsContext.addNamespace("alias", "http://fooNamespace/");
nsContext.addNamespace("bar", "http://barNamespace/");
nsContext.addNamespace("voo", "http://fooNamespace/");
nsContext.addNamespace("foo", "http://fooNamespace/");
getContextSupport().setNamespaceContext(nsContext);
Iterator iter = list.iterator();
while (iter.hasNext()) {
Object context = iter.next();
assertCountXPath(1, context, "/*");