EasyMock.expect(sub1Chain.getTargetOperation()).andReturn(operation);
EasyMock.expect(sub1Chain.getHeadInvoker()).andReturn(new MockInterceptor());
EasyMock.replay(sub1Chain);
List<InvocationChain> sub1Chains = new ArrayList<InvocationChain>();
sub1Chains.add(sub1Chain);
SCABinding b1 = new SCABindingFactoryImpl().createSCABinding();
EndpointReference epr1 = EasyMock.createNiceMock(EndpointReference.class);
EasyMock.expect(epr1.getURI()).andReturn("wire1Target");
EasyMock.expect(epr1.getBinding()).andReturn(b1);
EasyMock.replay(epr1);
RuntimeWire sub1Wire = EasyMock.createNiceMock(RuntimeWire.class);
EasyMock.expect(sub1Wire.getInvocationChains()).andReturn(sub1Chains);
EasyMock.expect(sub1Wire.getTarget()).andReturn(epr1).anyTimes();
EasyMock.replay(sub1Wire);
ArrayList<RuntimeWire> rtWires1 = new ArrayList<RuntimeWire>();
rtWires1.add(sub1Wire);
RuntimeComponentReference rtCompRef1 = EasyMock.createNiceMock(RuntimeComponentReference.class);
EasyMock.expect(rtCompRef1.getName()).andReturn("sub1Reference");
EasyMock.expect(rtCompRef1.getRuntimeWires()).andReturn(rtWires1);
EasyMock.replay(rtCompRef1);
InvocationChain sub2Chain = EasyMock.createNiceMock(InvocationChain.class);
EasyMock.expect(sub2Chain.getTargetOperation()).andReturn(operation);
EasyMock.expect(sub2Chain.getHeadInvoker()).andReturn(new MockInterceptor());
EasyMock.replay(sub2Chain);
List<InvocationChain> sub2Chains = new ArrayList<InvocationChain>();
sub2Chains.add(sub2Chain);
SCABinding b2 = new SCABindingFactoryImpl().createSCABinding();
EndpointReference epr2 = EasyMock.createNiceMock(EndpointReference.class);
EasyMock.expect(epr2.getURI()).andReturn("wire2Target");
EasyMock.expect(epr2.getBinding()).andReturn(b2);
EasyMock.replay(epr2);
RuntimeWire sub2Wire = EasyMock.createNiceMock(RuntimeWire.class);