ExecutionContext context = smooks.createExecutionContext();
test_ftl(smooks, context, input, expected);
}
private void test_ftl(Smooks smooks, ExecutionContext context, String input, String expected) throws IOException, SAXException {
StringResult result = new StringResult();
smooks.filterSource(context, new StringSource(input), result);
XMLUnit.setIgnoreWhitespace(true);
XMLAssert.assertXMLEqual(expected, result.getResult());
}