EClass eClass = createMock(EClass.class);
EStructuralFeature feature = createMock(EStructuralFeature.class);
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");