.setTask(new TaskConfig()
.setJob(new JobKey("role-" + id, "test", "job-" + id))
.setJobName("job-" + id)
.setEnvironment("test")
.setExecutorConfig(new org.apache.aurora.gen.ExecutorConfig("AuroraExecutor", ""))
.setOwner(new Identity("role-" + id, "user-" + id))));
// Apply defaults here so that we can expect the same task that will be written to the stream.
ConfigurationManager.applyDefaultsIfUnset(scheduledTask.getAssignedTask().getTask());
return scheduledTask;
}