@Test
public void testFailures() {

    Task job1Task0 = jobOperations.getTasks("job1").get(0);
    dataGenerator.place("removable1", job1Task0);
    dataGenerator.setQuota("job1", 0);
    DeschedulingFailure failure = newDescheduler(Collections.emptyMap()).getDeschedulingFailure(job1Task0);
    assertThat(failure.getReasonMessage()).contains("job quota");
}