public static CountingModelFactory createHostedModelFactory(Version version, Clock clock) {
        return new CountingModelFactory(HostedConfigModelRegistry.create(), version, clock, Zone.defaultZone());
    }
Create a model factory which always fails validation
configserver/src/test/java/com/yahoo/vespa/config/server/deploy/DeployTester.java