public void prepare(ConfigModelRepo configModelRepo) {
        int numSimpleServices = 0;
        ConfigModel simplePlugin = configModelRepo.get("simple");

        if ((simplePlugin != null) && (simplePlugin instanceof TestApi)) {
            TestApi testApi = (TestApi) simplePlugin;
            numSimpleServices = testApi.getNumSimpleServices();
        }
        for (Object apiService : apiServices) {
            ApiService as = (ApiService) apiService;
            as.setNumSimpleServices(numSimpleServices);
        }
    }
This is a plugin for testing the plugin API exchange mechanism in
the vespamodel. It uses the API of another plugin.

@author  gjoranv
config-model/src/test/java/com/yahoo/vespa/model/test/ApiConfigModel.java