@Test
    void testDerivingPosition() throws Exception {
        String schema =
                """
                schema place {

                    document place {

                        field location type position {
                            indexing: attribute
                        }
                    }
                }""";
        ApplicationBuilder builder = new ApplicationBuilder(new DeployLoggerStub());
        builder.addSchema(schema);
        var application = builder.build(false); // validate=false to test config deriving without validation
        var derived = new DerivedConfiguration(application.schemas().get("place"), application.rankProfileRegistry());
        var ilConfig = new IlscriptsConfig.Builder();
        derived.getIndexingScript().getConfig(ilConfig);

        var documentModel = new DocumentModelBuilder();
        var documentManager = documentModel.build(List.of(application.schemas().get("place")));
        var documentConfig = new DocumentManager().produce(documentManager, new DocumentmanagerConfig.Builder());
    }
Schema tests that don't depend on files.

@author bratseth
config-model/src/test/java/com/yahoo/schema/SchemaTestCase.java