assertQueryResults(Query.jobScoped(JobKeys.from("role-b", "env-b", "job-b")).active(), TASK_B);
assertQueryResults(Query.jobScoped(JobKeys.from("role-b", "devel", "job-b")).active());
// Explicitly call out the current differing behaviors for types of empty query conditions.
// Specifically - null task IDs and empty task IDs are different than other 'IN' conditions..
assertQueryResults(new TaskQuery().setTaskIds(null), TASK_A, TASK_B, TASK_C, TASK_D);
assertQueryResults(new TaskQuery().setTaskIds(ImmutableSet.<String>of()));
assertQueryResults(
new TaskQuery().setInstanceIds(ImmutableSet.<Integer>of()),
TASK_A, TASK_B, TASK_C, TASK_D);
assertQueryResults(
new TaskQuery().setStatuses(ImmutableSet.<ScheduleStatus>of()),
TASK_A, TASK_B, TASK_C, TASK_D);
}