IScheduledTask second = IScheduledTask.build(new ScheduledTask()
.setAssignedTask(new AssignedTask().setTask(secondGroupTask).setInstanceId(2)));
storageUtil.expectTaskFetch(Query.jobScoped(key).active(), first1, first2, second);
ConfigGroup group1 = new ConfigGroup()
.setConfig(firstGroupTask)
.setInstanceIds(Sets.newHashSet(0, 1));
ConfigGroup group2 = new ConfigGroup()
.setConfig(secondGroupTask)
.setInstanceIds(Sets.newHashSet(2));
ConfigSummary summary = new ConfigSummary()
.setKey(key.newBuilder())