EasyMock.expect(outbound.getServiceContract()).andReturn(new JavaServiceContract(Foo.class)).atLeastOnce();
List<OutboundWire> wires = new ArrayList<OutboundWire>();
wires.add(outbound);
Map<String, List<OutboundWire>> wireMap = new HashMap<String, List<OutboundWire>>();
wireMap.put("ref", wires);
CompositeComponent parent = new CompositeComponentImpl("foo", "foo", null, new ConnectorImpl(), null);
SystemAtomicComponent source = EasyMock.createMock(SystemAtomicComponent.class);
EasyMock.expect(source.getScope()).andReturn(Scope.MODULE).atLeastOnce();
EasyMock.expect(source.getName()).andReturn("source").atLeastOnce();
EasyMock.expect(source.getServiceInterfaces()).andReturn(services);
EasyMock.expect(source.getOutboundWires()).andReturn(wireMap);