exchange.setInMessage(message);
BindingOperationInfo boi = control.createMock(BindingOperationInfo.class);
BindingMessageInfo bmi = control.createMock(BindingMessageInfo.class);
EasyMock.expect(boi.getOutput()).andReturn(bmi);
exchange.put(BindingOperationInfo.class, boi);
MessageExchangeFactory factory = control.createMock(MessageExchangeFactory.class);
EasyMock.expect(channel.createExchangeFactoryForService(
null)).andReturn(factory);
InOut xchg = control.createMock(InOut.class);
EasyMock.expect(factory.createInOutExchange()).andReturn(xchg);
NormalizedMessage inMsg = control.createMock(NormalizedMessage.class);
EasyMock.expect(xchg.createMessage()).andReturn(inMsg);
NormalizedMessage outMsg = control.createMock(NormalizedMessage.class);
EasyMock.expect(xchg.getOutMessage()).andReturn(outMsg);