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