@Test
    void testLiteralBoost() {
        Schema schema = new Schema("literalboost", MockApplicationPackage.createEmpty());
        RankProfileRegistry rankProfileRegistry = RankProfileRegistry.createRankProfileRegistryWithBuiltinRankProfiles(schema);
        SDDocumentType document = new SDDocumentType("literalboost");
        schema.addDocument(document);
        SDField field1 = document.addField("a", DataType.STRING);
        field1.parseIndexingScript(schema.getName(), "{ index }");
        field1.setLiteralBoost(20);
        RankProfile other = new RankProfile("other", schema, rankProfileRegistry);
        rankProfileRegistry.add(other);
        other.addRankSetting(new RankProfile.RankSetting("a", RankProfile.RankSetting.Type.LITERALBOOST, 333));

        new Processing(new TestProperties())
                .process(schema, new BaseDeployLogger(), rankProfileRegistry, new QueryProfiles(),
                         true, false, Set.of());
        DerivedConfiguration derived = new DerivedConfiguration(schema, rankProfileRegistry);

        // Check attribute fields
        derived.getAttributeFields(); // TODO: assert content

        // Check il script addition
        assertIndexing(List.of("clear_state | guard { input a | tokenize normalize stem:\"BEST\" | index a; }",
                        "clear_state | guard { input a | tokenize | index a_literal; }"),
                schema);

        // Check index info addition
        IndexInfo indexInfo = derived.getIndexInfo();
        assertTrue(indexInfo.hasCommand("a", "literal-boost"));
    }
Tests adding of literal boost constructs
config-model/src/test/java/com/yahoo/schema/derived/LiteralBoostTestCase.java