ScopeContainer scope = createMock();
scope.start();
Map<String, AtomicComponent> contexts =
MockFactory.createWiredMultiplicity("source", SourceImpl.class, Target.class, scope,
"target", OtherTarget.class, OtherTargetImpl.class, members, scope);
AtomicComponent sourceComponent = contexts.get("source");
Source source = (Source) sourceComponent.getServiceInstance();
List<Target> targets = source.getTargets();
assertEquals(1, targets.size());
Target target = targets.get(0);
target.setString("foo");
assertEquals("foo", target.getString());