@Test
    void testDerivingHash() throws Exception {
        String schema =
                """
                schema page {

                    field domain_hash type long {
                        indexing: input domain | hash | attribute
                    }

                    document page {

                        field domain type string {
                            indexing: index | summary
                            match: word
                            rank: filter
                        }
                    }
                }""";
        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("page"), application.rankProfileRegistry());
        var ilConfig = new IlscriptsConfig.Builder();
        derived.getIndexingScript().getConfig(ilConfig);

        var documentModel = new DocumentModelBuilder();
        var documentManager = documentModel.build(List.of(application.schemas().get("page")));
        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