private static SemanticRulesConfig config() {

        // Create config to make sure rules are valid, config is validated in call to toMap() below
        var builder = new SemanticRulesConfig.Builder();

        List<SemanticRulesConfig.Rulebase.Builder> rules = new ArrayList<>();
        rules.add(create("child1", "vw -> audi;\n\n@include(parent.sr)\n\nvehiclebrand:audi -> vehiclebrand:skoda;\n\n"));
        rules.add(create("child2", "@include(parent)\n\nvehiclebrand:vw -> vehiclebrand:audi;\n\n[brand] :- @super, skoda;\n\n\n"));
        rules.add(create("cjk", "?? -> ???;\n@default\n"));
        rules.add(create("grandchild", "@include(child1.sr)\n@include(child2.sr)\n\ncausesphrase -> \"a produced phrase\";\n"));
        rules.add(create("grandfather", "[vehicle] :- car, motorcycle, bus;\n\ncars -> car;\n"));
        rules.add(create("grandmother", "vehiclebrand:bmw +> expensivetv;\n"));
        rules.add(create("parent", "@include(grandfather.sr)\n\n[brand] [vehicle] -> vehiclebrand:[brand];\n\n@include(grandmother.sr)\n\n[brand] :- alfa, audi, bmw;\n"));

        builder.rulebase(rules);
        return builder.build();
    }
Tests creating a set of rule bases (the same set as in inheritingrules) from config

@author bratseth
container-search/src/test/java/com/yahoo/prelude/semantics/test/ConfigurationTestCase.java