@Test
public void labelNameConflict() throws Exception {
EList<Rule> rules = new BasicEList<Rule>();
Grammar grammar = createMock(Grammar.class);
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);
expect(rule.getName()).andReturn("div");