writer = getXMLStreamWriter(baos);
message.setContent(XMLStreamWriter.class, writer);
message.getExchange().put(BindingOperationInfo.class, operation);
IMocksControl control = EasyMock.createNiceControl();
InterceptorChain ic = control.createMock(InterceptorChain.class);
ic.finishSubChain();
EasyMock.expectLastCall().anyTimes();
message.setInterceptorChain(ic);
control.replay();
}