static SchemaInfo createSchemaInfoFromConfig() {
        var rankProfileCommon = new SchemaInfoConfig.Schema.Rankprofile.Builder();
        rankProfileCommon.name("commonProfile");
        rankProfileCommon.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor1)").type("tensor(a{},b{})"));
        rankProfileCommon.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor2)").type("tensor(x[2],y[2])"));
        rankProfileCommon.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor3)").type("tensor(x[2],y[2])"));
        rankProfileCommon.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor4)").type("tensor<float>(x[5])"));

        var schemaInfoInfoConfig = new SchemaInfoConfig.Builder();

        // ----- Schema A
        var schemaA = new SchemaInfoConfig.Schema.Builder();
        schemaA.name("a");

        schemaA.field(new SchemaInfoConfig.Schema.Field.Builder().name("field1").type("string")
                                                                 .index(true).attribute(false).bitPacked(false)
                                                                 .alias("alias1").alias("alias2"));
        schemaA.field(new SchemaInfoConfig.Schema.Field.Builder().name("field2").type("int")
                                                                 .index(false).attribute(true).bitPacked(false));

        schemaA.rankprofile(rankProfileCommon);
        var rankProfileInconsistentA = new SchemaInfoConfig.Schema.Rankprofile.Builder();
        rankProfileInconsistentA.name("inconsistent");
        rankProfileInconsistentA.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor1)").type("tensor(a{},b{})"));
        schemaA.rankprofile(rankProfileInconsistentA);

        var summaryClass = new SchemaInfoConfig.Schema.Summaryclass.Builder();
        summaryClass.name("testSummary");
        var field1 = new SchemaInfoConfig.Schema.Summaryclass.Fields.Builder();
        field1.name("field1").type("string").dynamic(true);
        summaryClass.fields(field1);
        var field2 = new SchemaInfoConfig.Schema.Summaryclass.Fields.Builder();
        field2.name("field2").type("integer");
        summaryClass.fields(field2);
        schemaA.summaryclass(summaryClass);

        schemaInfoInfoConfig.schema(schemaA);

        // ----- Schema B
        var schemaB = new SchemaInfoConfig.Schema.Builder();
        schemaB.name("b");

        schemaB.rankprofile(rankProfileCommon);
        var rankProfileInconsistentB = new SchemaInfoConfig.Schema.Rankprofile.Builder();
        rankProfileInconsistentB.name("inconsistent");
        rankProfileInconsistentB.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor1)").type("tensor(x[10])"));
        schemaB.rankprofile(rankProfileInconsistentB);
        var rankProfileBOnly = new SchemaInfoConfig.Schema.Rankprofile.Builder();
        rankProfileBOnly.name("bOnly")
                .significance(new SchemaInfoConfig.Schema.Rankprofile.Significance.Builder().useModel(true));
        rankProfileBOnly.input(new SchemaInfoConfig.Schema.Rankprofile.Input.Builder().name("query(myTensor1)").type("tensor(a{},b{})"));
        schemaB.rankprofile(rankProfileBOnly);

        schemaInfoInfoConfig.schema(schemaB);

        // ----- Info about clusters
        var qrSearchersConfig = new QrSearchersConfig.Builder();
        var clusterAB = new QrSearchersConfig.Searchcluster.Builder();
        clusterAB.name("ab");
        clusterAB.searchdef("a").searchdef("b");
        qrSearchersConfig.searchcluster(clusterAB);
        var clusterA = new QrSearchersConfig.Searchcluster.Builder();
        clusterA.name("a");
        clusterA.indexingmode(QrSearchersConfig.Searchcluster.Indexingmode.Enum.STREAMING);
        clusterA.searchdef("a");
        qrSearchersConfig.searchcluster(clusterA);

        return new SchemaInfo(schemaInfoInfoConfig.build(), qrSearchersConfig.build());
    }
Creates the same schema info as createSchemaInfo from config objects.
container-search/src/test/java/com/yahoo/search/schema/SchemaInfoTester.java