EList<PrequelConstruct> prequels = new BasicEList<PrequelConstruct>();
EList<V4Token> tokenList = new BasicEList<V4Token>();
Grammar grammar = createMock(Grammar.class);
LexerRule rule = createMock(LexerRule.class);
V4Tokens tokens = createMock(V4Tokens.class);
V4Token v4Token = createMock(V4Token.class);
EClass eClass = createMock(EClass.class);
EStructuralFeature feature = createMock(EStructuralFeature.class);
Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "warning");
expect(grammar.getRules()).andReturn(rules);
expect(grammar.getPrequels()).andReturn(prequels);
expect(tokens.getTokens()).andReturn(tokenList);
expect(rule.getName()).andReturn("R");
expect(v4Token.getName()).andReturn("R");