@Test
    void requireThatExtraFieldInputExtraFieldThrows() throws ParseException {
        try {
            var schema = """
                    search indexing_extra_field_input_extra_field {
                        document indexing_extra_field_input_extra_field {
                        }
                        field foo type string {
                        }
                        field bar type string {
                            indexing: input bar | index
                        }
                    }
                   """;
            ApplicationBuilder.createFromString(schema);
            fail("Expected exception");
        }
        catch (IllegalArgumentException e) {
            assertEquals("For schema 'indexing_extra_field_input_extra_field', field 'bar': Indexing script refers " +
                         "to field 'bar' which is neither a field in document type " +
                         "'indexing_extra_field_input_extra_field' nor a mutable attribute",
                         Exceptions.toMessageString(e));
        }
    }
@author Simon Thoresen Hult
@author bratseth
config-model/src/test/java/com/yahoo/schema/processing/IndexingInputsTestCase.java