@Test (expected=IllegalStateException.class)
public void cancelAfterUseReservedTaskDelayed() throws Exception {
TaskReservation reservation =
taskScheduler.reserveTask(testTask, taskOwner,
System.currentTimeMillis() + 50);
reservation.use();
reservation.cancel();
}
@Test (expected=IllegalStateException.class)
public void useAfterCancelReservedTask() throws Exception {