InputSource ediSource = new InputSource();
ediSource.setByteStream(new ByteArrayInputStream(inputMessage.getBytes()));
ediSource.setCharacterStream(new StringReader(inputMessage));
UNEdifactInterchange interchange = fromUNEdifact(ediSource);
StringWriter writer = new StringWriter();
interchange.write(writer);
String normalizedInput = StreamUtils.normalizeLines(inputMessage, true);
String normalizedOutput = StreamUtils.normalizeLines(writer.toString(), true);
if (!normalizedOutput.equals(normalizedInput)) {