ref1.setName("accountDataService");
ref1.setMultiplicity(Multiplicity.ONE_ONE);
ref1.setInterfaceContract(new TestInterfaceContract(factory));
ref1.setReference(i.getReferences().get(0));
c.getReferences().add(ref1);
ref1.getBindings().add(new TestBinding(factory));
ComponentReference ref2 = factory.createComponentReference();
ref2.setName("stockQuoteService");
ref2.setMultiplicity(Multiplicity.ONE_ONE);
ref2.setInterfaceContract(new TestInterfaceContract(factory));
ref2.setReference(i.getReferences().get(1));
c.getReferences().add(ref2);
ref2.getBindings().add(new TestBinding(factory));
ComponentService s = factory.createComponentService();
s.setName("AccountService");
s.setInterfaceContract(new TestInterfaceContract(factory));
s.setService(i.getServices().get(0));
c.getServices().add(s);
s.getBindings().add(new TestBinding(factory));
return c;
}