@Test
    void testNoInputInDerivedField() throws ParseException {
        try {
            var schema = """
                    schema test {
                        document test {
                            field field1 type int {
                            }
                    }
                        field derived1 type int {
                            indexing: attribute
                        }
                    }
                    """;
            ApplicationBuilder.createFromString(schema);
            fail("Expected exception");
        }
        catch (IllegalArgumentException e) {
            assertEquals("For schema 'test', field 'derived1': Invalid expression 'attribute derived1': " +
                         "Expected int input, but no input is provided",
                         Exceptions.toMessageString(e));
        }
    }
@author Simon Thoresen Hult
@author bratseth
config-model/src/test/java/com/yahoo/schema/processing/IndexingInputsTestCase.java