reservation.cancel();
}
@Test (expected=IllegalStateException.class)
public void cancelAfterUseReservedTaskDelayed() throws Exception {
SchedulerQueue queue = getQueueInstance();
TaskReservation reservation =
queue.reserveTask(new ScheduledTaskImpl(testTask, 100));
reservation.use();
reservation.cancel();
}