LabeledAlt label = createMock(LabeledAlt.class);
Rule rule = createMock(ParserRule.class);
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);