@Test
    void testNonDefaultRankLiteralBoost() {
        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 }");
        RankProfile other = new RankProfile("other", schema, rankProfileRegistry);
        rankProfileRegistry.add(other);
        other.addRankSetting(new RankProfile.RankSetting("a", RankProfile.RankSetting.Type.LITERALBOOST, 333));

        schema = ApplicationBuilder.buildFromRawSchema(schema, rankProfileRegistry, new QueryProfileRegistry());
        DerivedConfiguration derived = new DerivedConfiguration(schema, rankProfileRegistry);

        // 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 a literal boost in a non-default rank profile only
config-model/src/test/java/com/yahoo/schema/derived/LiteralBoostTestCase.java