public Builder hostedConfigserverConfig(Zone zone) {
            try {
                this.configserverConfig = new ConfigserverConfig(new ConfigserverConfig.Builder()
                                                      .configServerDBDir(temporaryFolder.newFolder().getAbsolutePath())
                                                      .configDefinitionsDir(temporaryFolder.newFolder().getAbsolutePath())
                                                      .fileReferencesDir(temporaryFolder.newFolder().getAbsolutePath())
                                                      .hostedVespa(true)
                                                      .multitenant(true)
                                                      .region(zone.region().value())
                                                      .environment(zone.environment().value())
                                                      .system(zone.system().value()));
                return this;
            }
            catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
Returns the number of models created successfully by this instance
configserver/src/test/java/com/yahoo/vespa/config/server/deploy/DeployTester.java