public static void validate(Validator validator, VespaModel model, DeployState deployState) {
        Execution execution = new Execution(model, deployState);
        validator.validate(execution);
        execution.throwIfFailed();
    }
Runs validation, and throws on illegalities.
config-model/src/test/java/com/yahoo/vespa/model/application/validation/ValidationTester.java