}
private void test(String mapping) throws IOException, SAXException {
String expected = new String(StreamUtils.readStream(getClass().getResourceAsStream("expected.xml")));
Smooks smooks = new Smooks();
StringResult result = new StringResult();
// Create and initialise the Smooks config for the parser...
smooks.setReaderConfig(new EDIReaderConfigurator(mapping));
smooks.filterSource(new StreamSource(getClass().getResourceAsStream("edi-input.txt")), result);
XMLUnit.setIgnoreWhitespace(true);
XMLAssert.assertXMLEqual(expected, result.toString());
}