@Test
public void checkActionRedefinition() throws Exception {
EList<PrequelConstruct> prequels = new BasicEList<PrequelConstruct>();
Grammar grammar = createMock(Grammar.class);
GrammarAction action1 = createMock(GrammarAction.class);
GrammarAction action2 = createMock(GrammarAction.class);
EClass eClass = createMock(EClass.class);
EStructuralFeature feature = createMock(EStructuralFeature.class);
Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");
expect(grammar.getPrequels()).andReturn(prequels);
expect(action1.getScope()).andReturn(null);
expect(action1.getName()).andReturn("members");
expect(action2.getScope()).andReturn(null);
expect(action2.getName()).andReturn("members");
expect(action2.eClass()).andReturn(eClass);
expect(eClass.getEStructuralFeature("name")).andReturn(feature);
PowerMock.expectPrivate(validator, "error", "redefinition of 'members' action",
action2, feature);