expect(eClass.getEStructuralFeature("name")).andReturn(feature);
LexerCommand command = createMock(LexerCommand.class);
expect(command.getName()).andReturn(commandName);
expect(command.getArgs()).andReturn(args);
expect(command.eClass()).andReturn(eClass);
Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");
PowerMock.expectPrivate(validator, "error", "lexer command '" + commandName
+ "' does not take any arguments", command, feature);