public void testExpressionWithFunction() throws Exception {
ImmutableExpandedName functionName =
new ImmutableExpandedName("http://myNamespace", "test");
NamespacePrefixTracker manager = context.getNamespacePrefixTracker();
manager.startPrefixMapping("function",
functionName.getNamespaceURI());
context.getCurrentScope().declareVariable(
new ImmutableExpandedName("", "myVar"),
result);