@Test
public void testRewriteJobMultipleMatches() throws Exception {
JobConfiguration oldJob = makeJob(productionTask());
JobConfiguration newJob = oldJob.deepCopy();
newJob.getTaskConfig().setExecutorConfig(new ExecutorConfig("aurora", "rewritten"));
String manager = "manager_key";
expectAuth(ROOT, true);
expect(storageUtil.jobStore.fetchManagerIds()).andReturn(ImmutableSet.of(manager));
expect(storageUtil.jobStore.fetchJobs(manager))
.andReturn(IJobConfiguration.listFromBuilders(ImmutableList.of(oldJob, makeJob())));