null);
final ModelAccessFacade modelFacade = repository.getModel();
assertNotNull(modelFacade);
assertNotNull(modelFacade.getModel());
assertTrue(modelFacade.getModel() instanceof UML2Resource);
Model model = (Model)EcoreUtil.getObjectByType(
((UML2Resource)repository.getModel().getModel()).getContents(),
EcorePackage.eINSTANCE.getEObject());
assertEquals(
"Test Model",
model.getName());
Collection elements = UML2Util.findNamedElements(
model.eResource(),
"Test Model::testPackage::Top",
true);
org.eclipse.uml2.Class umlClass = (org.eclipse.uml2.Class)elements.iterator().next();
assertEquals(
"Top",