@Test
    public void testNestedMultiStatementScript() {
        String script = """
                        {
                        clear_state | guard { input array_1 | { "en" | set_language; for_each { tokenize normalize stem:"BEST" } | summary array_1 | index array_1; }; }
                        }
                        """;

        var tester = new ScriptTester();
        var expression = tester.scriptFrom(script);

        SimpleTestAdapter adapter = new SimpleTestAdapter();
        var myArray = new Array<StringFieldValue>(DataType.getArray(DataType.STRING));
        adapter.createField(new Field("array_1", myArray.getDataType()));
        adapter.setValue("myArray", myArray);
        expression.resolve(adapter);
        ExecutionContext context = new ExecutionContext(adapter);
        expression.execute(context);
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java