@Test
public void zapParametrisedConstructor() throws IOException, SAXException, XQException {

    Map<String, Object> configParams = new HashMap<String, Object>();
    configParams.put(FeatureKeys.PRE_EVALUATE_DOC_FUNCTION, Boolean.TRUE);
    XqjTransmogrifier<String> localTransformer = new XqjTransmogrifier<String>(String.class, configParams);
    String zapResult = localTransformer.zap(source("xquery/string.xml"), new Object[] { "xquery/string-q5.xq" });
    assertTrue(XMLUnit.compareXML(result("xquery/string.xml"), zapResult).similar());
}