    @Test
    public void testNoWriter() throws Exception {

        PhaseInterceptor<NMRMessage> interceptor = new NMRFaultOutInterceptor();
        try {
            NMRMessage msg = new NMRMessage(new MessageImpl());
            interceptor.handleMessage(msg);
            fail("Should have thrown an exception");
        } catch (IllegalStateException e) {
            // ok
        }
    }