}
@Test
public void testAddInstancesFailsTaskIdLength() throws Exception {
ITaskConfig populatedTask = ITaskConfig.build(populatedTask());
AddInstancesConfig config = createInstanceConfig(populatedTask.newBuilder());
expectAuth(ROLE, true);
expect(cronJobManager.hasJob(JOB_KEY)).andReturn(false);
lockManager.validateIfLocked(LOCK_KEY, Optional.of(LOCK));
storageUtil.expectTaskFetch(Query.jobScoped(JOB_KEY).active());
expect(quotaManager.checkInstanceAddition(anyObject(ITaskConfig.class), anyInt()))