expect(label.eContainer()).andReturn(grammar);
expect(label.getLabel()).andReturn("div");
expect(label.eClass()).andReturn(eClass);
expect(grammar.getRules()).andReturn(rules);
expect(grammar.eContainer()).andReturn(null);
expect(rule.getName()).andReturn("div");
expect(eClass.getEStructuralFeature("label")).andReturn(feature);