private void verify(VespaModel model) {
        assertEquals(3, model.rankProfileList().getRankProfiles().size(), "Global models are created (although not used directly here)");

        RankProfilesConfig.Builder builder = new RankProfilesConfig.Builder();
        model.getConfig(builder, "test/search/cluster.test/test");
        RankProfilesConfig config = new RankProfilesConfig(builder);
        assertEquals(3, config.rankprofile().size());
        assertEquals("test", config.rankprofile(2).name());
        RankProfilesConfig.Rankprofile.Fef test = config.rankprofile(2).fef();

        // Compare profile content in a denser format than config:
        StringBuilder b = new StringBuilder();
        for (RankProfilesConfig.Rankprofile.Fef.Property p : test.property())
            b.append(p.name()).append(": ").append(p.value()).append("\n");
        assertEquals(testProfile, b.toString());
    }
Tests rank profile imported model evaluation

@author bratseth
config-model/src/test/java/com/yahoo/vespa/model/ml/MlModelsTest.java