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