* Tests {@link ModelRegistrar#registerModels()}.
*/
@Test
public void testRegisterDependantModels() {
// test regular dependant models
final M2Model user = M2Model.createModel("user");
final M2Model provider = M2Model.createModel("provider");
final M2Model superProvider = M2Model.createModel("superprovider");
daoModelRegistrar.setModels(asList(
new M2ModelResource(null, user),
new M2ModelResource(null, provider),
new M2ModelResource(null, superProvider)
));
user.createImport("http://www.alfresco.org/model/provider/1.0", "provider");
provider.createNamespace("http://www.alfresco.org/model/provider/1.0", "provider");
provider.createImport("http://www.alfresco.org/model/superprovider/1.0", "superprovider");
superProvider.createNamespace("http://www.alfresco.org/model/superprovider/1.0", "superprovider");
final ArgumentCaptor<M2Model> modelParameter = ArgumentCaptor.forClass(M2Model.class);
daoModelRegistrar.registerModels();