@Test
public void testImmediateMigrations() {

    dataGenerator.addJobAttribute("jobToMigrate", RelocationAttributes.RELOCATION_REQUIRED_BY_IMMEDIATELY, "" + (clock.wallTime() + 1));
    Task task0 = jobOperations.getTasks("jobToMigrate").get(0);
    dataGenerator.place("active1", task0);
    Map<String, DeschedulingResult> immediateEvictions = newDescheduler(Collections.emptyMap()).findAllImmediateEvictions();
    assertThat(immediateEvictions).hasSize(1).containsKey(task0.getId());
}