@Test
    public void testRedeployWithCloudAccount() {
        CloudAccount cloudAccount = CloudAccount.from("012345678912");
        DeployTester tester = new DeployTester.Builder(temporaryFolder)
                .hostedConfigserverConfig(Zone.defaultZone())
                .modelFactory(createHostedModelFactory(Version.fromString("4.5.6"), Clock.systemUTC()))
                .build();
        tester.deployApp("src/test/apps/hosted/", new PrepareParams.Builder()
                .vespaVersion("4.5.6")
                .cloudAccount(cloudAccount));
        Optional<com.yahoo.config.provision.Deployment> deployment = tester.redeployFromLocalActive(tester.applicationId());
        assertTrue(deployment.isPresent());
        deployment.get().activate();
        assertEquals(cloudAccount, ((Deployment) deployment.get()).session().getCloudAccount().get());
    }
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