}
public void testParserCache2() throws Exception {
// no default namespace
setUp("nsFilterTest.jelly");
Script script = jelly.compileScript();
script.run(context,xmlOutput);
assertTrue("should have no var when default namspace is not set",
context.getVariable("usedDefaultNamespace") == null);
// now we have a default namespace, so we
// should see a variable, despite the XMLParser cache
jelly.setDefaultNamespaceURI("jelly:core");
script = jelly.compileScript();
script.run(context,xmlOutput);
assertTrue("should have var when default namspace is set",
context.getVariable("usedDefaultNamespace").equals("true"));
}