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));
}
@Test