public void testConnectServiceWires() {
// create the inbound wire and chain for the target
InboundInvocationChain targetChain = EasyMock.createMock(InboundInvocationChain.class);
EasyMock.expect(targetChain.getOperation()).andReturn(operation).atLeastOnce();
EasyMock.expect(targetChain.getHeadInterceptor()).andReturn(headInterceptor);
targetChain.prepare();
EasyMock.replay(targetChain);
Map<Operation<?>, InboundInvocationChain> targetChains = new HashMap<Operation<?>, InboundInvocationChain>();
targetChains.put(operation, targetChain);
InboundWire targetWire = EasyMock.createMock(InboundWire.class);
EasyMock.expect(targetWire.getServiceContract()).andReturn(contract).anyTimes();