@Test
    public void testThatAppWithFilesWithInvalidFileExtensionFails() {
        DeployTester tester = new DeployTester.Builder(temporaryFolder)
                .configserverConfig(new ConfigserverConfig(new ConfigserverConfig.Builder()
                                                                   .hostedVespa(true)
                                                                   .configServerDBDir(uncheck(() -> Files.createTempDirectory("serverdb")).toString())
                                                                   .configDefinitionsDir(uncheck(() -> Files.createTempDirectory("configdefinitions")).toString())
                                                                   .fileReferencesDir(uncheck(() -> Files.createTempDirectory("configdefinitions")).toString())))
                .modelFactory(createHostedModelFactory(Version.fromString("8.7.6"), Clock.systemUTC()))
                .build();
        try {
            tester.deployApp("src/test/apps/hosted-invalid-file-extension/", "8.7.6");
            fail();
        } catch (InvalidApplicationException e) {
            assertEquals("java.lang.IllegalArgumentException: File in application package with unknown extension: schemas/file-with-invalid.extension, please delete or move file to another directory.",
                         e.getMessage());
        }
    }
Test that deploying an application works when there are no allocated hosts in the system
(the bootstrap a new zone case, so deploying the routing app since that is the first deployment
that will be done)
configserver/src/test/java/com/yahoo/vespa/config/server/deploy/HostedDeployTest.java