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);
Source source = new StreamSource(new ByteArrayInputStream(
"<message>TestHelloWorld</message>".getBytes()));