IScheduledTask oldTask = buildScheduledTask(0, 5);
storageUtil.expectTaskFetch(Query.unscoped().byJob(JOB_KEY).active(), oldTask);
expect(taskIdGenerator.generate(ITaskConfig.build(request.getTaskConfig()), 6))
.andReturn(TASK_ID);
ITaskConfig config = ITaskConfig.build(request.getTaskConfig());
IJobUpdate update = buildJobUpdate(6, config, ImmutableMap.of(
oldTask.getAssignedTask().getTask(), ImmutableSet.of(new Range(0, 0))));
expect(quotaManager.checkJobUpdate(update)).andReturn(NOT_ENOUGH_QUOTA);