@Test public void testNoFault() throws Exception {
PhaseInterceptor interceptor=new NMRFaultOutInterceptor();
try {
NMRMessage msg=new NMRMessage(new MessageImpl());
msg.setContent(XMLStreamWriter.class,XMLOutputFactory.newInstance().createXMLStreamWriter(new ByteArrayOutputStream()));
interceptor.handleMessage(msg);
fail("Should have thrown an exception");
}
catch ( IllegalStateException e) {
}
}