@@ -0,0 +1,1197 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.%0Apackage com.yahoo.vespa.hosted.controller.deployment;%0A%0Aimport com.yahoo.vespa.hosted.controller.api.integration.BuildService;%0Aimport com.yahoo.vespa.hosted.controller.application.DeploymentJobs;%0Aimport com.yahoo.vespa.hosted.controller.application.DeploymentJobs.JobType;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.List;%0A%0A/**%0A * @author jvenstad%0A */%0Apublic class MockBuildService implements BuildService %7B%0A%0A    private final List%3CBuildJob%3E jobs = new ArrayList%3C%3E();%0A%0A    @Override%0A    public boolean trigger(BuildJob buildJob) %7B%0A        return jobs.add(buildJob);%0A    %7D%0A%0A    /** List all running jobs. */%0A    public List%3CBuildJob%3E jobs() %7B%0A        return new ArrayList%3C%3E(jobs);%0A    %7D%0A%0A    /** List and remove all running jobs. */%0A    public List%3CBuildJob%3E takeJobsToRun() %7B%0A        List%3CBuildJob%3E jobsToRun = jobs();%0A        jobs.clear();%0A        return jobsToRun;%0A    %7D%0A%0A    /** Remove all running jobs for the given project. */%0A    public boolean removeJob(long projectId, JobType jobType) %7B%0A        return jobs.remove(new BuildJob(projectId, jobType.jobName()));%0A    %7D%0A%0A%7D%0A

Add mock for tests!