@Test
    void testDeriving() {
        Schema schema = new Schema("test", MockApplicationPackage.createEmpty());
        RankProfileRegistry rankProfileRegistry = RankProfileRegistry.createRankProfileRegistryWithBuiltinRankProfiles(schema);
        SDDocumentType doc = new SDDocumentType("test");
        schema.addDocument(doc);
        doc.addField(new SDField(doc, "a", DataType.STRING));
        SDField field = new SDField(doc, "b", DataType.STRING);
        field.setLiteralBoost(500);
        doc.addField(field);
        doc.addField(new SDField(doc, "c", DataType.STRING));

        schema = ApplicationBuilder.buildFromRawSchema(schema, rankProfileRegistry, new QueryProfileRegistry());
        new DerivedConfiguration(schema, rankProfileRegistry);
    }
Tests deriving rank for files from search definitions

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