Assert.assertTrue("Message was not transformed", checkTransformedXML(doc));
}
@Test
public void outXMLStreamTest() throws XMLStreamException, SAXException, IOException, ParserConfigurationException {
CachedWriter cWriter = new CachedWriter();
cWriter.holdTempFile();
XMLStreamWriter xWriter = StaxUtils.createXMLStreamWriter(cWriter);
message.setContent(XMLStreamWriter.class, xWriter);
outInterceptor.handleMessage(message);
XMLStreamWriter tXWriter = message.getContent(XMLStreamWriter.class);
StaxUtils.copy(new StreamSource(messageIS), tXWriter);
tXWriter.close();
cWriter.releaseTempFileHold();
Document doc = DOMUtils.readXml(cWriter.getReader());
Assert.assertTrue("Message was not transformed", checkTransformedXML(doc));
}