Reference ref1 = factory.createReference();
ref1.setName("accountDataService");
ref1.setInterfaceContract(new TestInterfaceContract(factory));
ref1.setMultiplicity(Multiplicity.ONE_ONE);
ctype.getReferences().add(ref1);
ref1.getBindings().add(new TestBinding(factory));
Reference ref2 = factory.createReference();
ref2.setName("stockQuoteService");
ref2.setInterfaceContract(new TestInterfaceContract(factory));
ref2.setMultiplicity(Multiplicity.ONE_ONE);
ctype.getReferences().add(ref2);
ref2.getBindings().add(new TestBinding(factory));
Service s = factory.createService();
s.setName("AccountService");
s.setInterfaceContract(new TestInterfaceContract(factory));
ctype.getServices().add(s);
s.getBindings().add(new TestBinding(factory));
return ctype;
}