public void testHelper(String config, String message) throws IOException, SAXException {
Smooks smooks = new Smooks(getClass().getResourceAsStream("smooks-config-" + config + ".xml"));
String expected = StreamUtils.readStreamAsString(getClass().getResourceAsStream("expected-" + config + ".xml"));
StringResult result = new StringResult();
smooks.filterSource(new StringSource(message), result);
// System.out.println(result);
XMLUnit.setIgnoreWhitespace(true);
XMLAssert.assertXMLEqual(expected, result.toString());
}