}
@Test
public void undefinedMode() {
ILinkingDiagnosticContext diagnosticContext = createMock(ILinkingDiagnosticContext.class);
LexerCommand command = createMock(LexerCommand.class);
LexerCommands commands = createMock(LexerCommands.class);
expect(diagnosticContext.getLinkText()).andReturn("INSIDE");
expect(diagnosticContext.getContext()).andReturn(command);
expect(command.eContainer()).andReturn(commands);
Object[] mocks = {diagnosticContext, command, commands };
replay(mocks);