expect(eClass.getEStructuralFeature("name")).andReturn(feature);
LexerCommand command = createMock(LexerCommand.class);
expect(command.getName()).andReturn(commandName);
expect(command.getArgs()).andReturn(null);
expect(command.eClass()).andReturn(eClass);
Antlr4Validator validator = PowerMock.createPartialMock(Antlr4Validator.class, "error");
PowerMock.expectPrivate(validator, "error", "missing argument for lexer command '"
+ commandName + "' ", command, feature);