@Test
    public void testMultiStatementInput() {
        var tester = new ScriptTester();
        // A multi-statement indexing block as rewritten by the config model:
        var expression = tester.expressionFrom("clear_state | guard { input myString | { \"en\" | set_language; tokenize normalize keep-case stem:\"BEST\" | index myOutputString; }; }");

        SimpleTestAdapter adapter = new SimpleTestAdapter();
        var myString = new Field("myString", DataType.STRING);
        adapter.createField(myString);
        adapter.setValue("myString", new StringFieldValue("Test value"));
        adapter.createField(new Field("myOutputString", DataType.STRING));

        expression.resolve(adapter);

        ExecutionContext context = new ExecutionContext(adapter);
        expression.execute(context);
        assertEquals("Test value", ((StringFieldValue)adapter.values.get("myOutputString")).getString());
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java