models.add(link);
Rule rule = RuleModelFactory.eINSTANCE.createRule();
accessLayer.addElement(project, rule);
ElementDefinition e1 = RuleModelFactory.eINSTANCE.createElementDefinition();
accessLayer.addElement(project, e1);
e1.setType("TraceLink");
rule.getElements().add(e1);
assertEquals(1, results.size());
assertEquals(0, results.get(0).size());
elementProcessor.retrieveElements(project, rule, models, results);
assertEquals(1, results.size());
assertEquals(1, results.get(0).size());
assertSame(link, results.get(0).get(0));
Actor actor = URNModelFactory.eINSTANCE.createActor();
accessLayer.addElement(project, actor);
models.add(actor);
results.get(0).clear();
e1.setType("*");
assertEquals(1, results.size());
assertEquals(0, results.get(0).size());
elementProcessor.retrieveElements(project, rule, models, results);
assertEquals(1, results.size());
assertEquals(2, results.get(0).size());
results.get(0).clear();
e1.setType("Actor");
assertEquals(1, results.size());
assertEquals(0, results.get(0).size());
elementProcessor.retrieveElements(project, rule, models, results);
assertEquals(1, results.size());
assertEquals(1, results.get(0).size());
assertSame(actor, results.get(0).get(0));
results.get(0).clear();
e1.setType("TraceLink|Actor");
assertEquals(1, results.size());
assertEquals(0, results.get(0).size());
elementProcessor.retrieveElements(project, rule, models, results);
assertEquals(1, results.size());