// create the outbound wire and chain from the source component
OutboundInvocationChain outboundChain = EasyMock.createMock(OutboundInvocationChain.class);
EasyMock.expect(outboundChain.getOperation()).andReturn(operation).atLeastOnce();
outboundChain.setTargetInterceptor(EasyMock.isA(SynchronousBridgingInterceptor.class));
outboundChain.setTargetInvoker(null);
outboundChain.prepare();
EasyMock.replay(outboundChain);
Map<Operation<?>, OutboundInvocationChain> outboundChains =
new HashMap<Operation<?>, OutboundInvocationChain>();
outboundChains.put(operation, outboundChain);
OutboundWire outboundWire = EasyMock.createMock(OutboundWire.class);