@Test
public void zapLocalFunction() throws IOException, SAXException {

    Map<String, Object> dynamicEvalParams = new HashMap<String, Object>();
    dynamicEvalParams.put("language", "Bulgarian");
    dynamicEvalParams.put("author_name", "John");
    Object[] params = new Object[] { "xquery/string-q3.xq", dynamicEvalParams };
    String zapResult = transformer.zap(source("xquery/string.xml"), params);
    assertTrue(XMLUnit.compareXML(result("xquery/string-q3.xml"), zapResult).similar());
}