xmlMessage.setContent(XMLStreamWriter.class, StaxUtils.createXMLStreamWriter(baos));
xmlMessage.setContent(Exception.class, new Fault(new RuntimeException("dummy exception")));
XMLFaultOutInterceptor xfo = new XMLFaultOutInterceptor("phase1");
chain.add(xfo);
InHelpInterceptor ih = new InHelpInterceptor("phase2");
ClientFaultConverter cfc = new ClientFaultConverter("phase3");
XMLFaultInInterceptor xfi = new XMLFaultInInterceptor("phase3");
chain.add(ih);
chain.add(cfc);
chain.add(xfi);
chain.doIntercept(xmlMessage);