@Test(expected = InvalidApplicationException.class)
    public void testFailingToCreateModelVersion7FailsDeployment() {
        deployWithModelForLatestMajorVersionFailing(7);
    }
Tests that we fail deployment for version 7.x if creating version 7.x fails (i.e. that we do not skip
building 7.x and only build version 6.x). Skipping creation of models for a major version is only supported
for major version >= 8 (see test above) or when major-version=6 is set in application package.
configserver/src/test/java/com/yahoo/vespa/config/server/deploy/HostedDeployTest.java