MockContentHandlerNS handler;
// Test message 01 - no UNA segment...
handler = new MockContentHandlerNS();
NamespaceDeclarationStack namespaceDeclarationStack = new NamespaceDeclarationStack(parser);
parser.setContentHandler(new NamespaceAwareHandler(handler, namespaceDeclarationStack));
parser.parse(new InputSource(getClass().getResourceAsStream("unedifact-msg-04.edi")));
//System.out.println(handler.xmlMapping);
XMLUnit.setIgnoreWhitespace( true );
XMLAssert.assertXMLEqual(new InputStreamReader(getClass().getResourceAsStream("unedifact-msg-expected-02.xml")), new StringReader(handler.xmlMapping.toString()));
}