@Test
    public void testInvalidChunking() {
        try {
            String script = "{ input myText | chunk | summary myChunks | index myChunks }";
            var tester = new ScriptTester();
            tester.chunkers.put("chunkerId", new SentenceChunker());
            tester.scriptFrom(script);
            fail("Expected exception");
        } catch (IllegalArgumentException e) {
            assertEquals("A chunker id must be specified. Valid chunkers are chunkerId",
                         Exceptions.toMessageString(e));
        }
    }
@author Simon Thoresen Hult
@author bratseth
indexinglanguage/src/test/java/com/yahoo/vespa/indexinglanguage/ScriptTestCase.java