@Test
public void testOnePreemptableTask() throws Exception {
setUpHost(HOST_A, RACK_A);
schedulingFilter = createMock(SchedulingFilter.class);
ScheduledTask highPriority = makeTask(USER_A, JOB_A, TASK_ID_A, 100);
runOnHost(highPriority, HOST_A);
ScheduledTask lowerPriority = makeTask(USER_A, JOB_A, TASK_ID_B, 99);
runOnHost(lowerPriority, HOST_A);
ScheduledTask lowestPriority = makeTask(USER_A, JOB_A, TASK_ID_C, 1);
runOnHost(lowestPriority, HOST_A);
ScheduledTask pendingPriority = makeTask(USER_A, JOB_A, TASK_ID_D, 98);
clock.advance(PREEMPTION_DELAY);
expectNoOffers();
expectGetPendingTasks(pendingPriority);