public void removeApplication(ApplicationId applicationId) {
        new MockDeployment(provisioner, new ApplicationContext(applicationId, List.of())).activate();

        applications.remove(applicationId);
        lastPrepareTimes.remove(applicationId);
        lastActivationTimes.remove(applicationId);
    }
Create a mock deployer which contains a substitute for an application repository, filled to
be able to call provision with the right parameters.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/testutils/MockDeployer.java