@Test
public void testScheduleNegativeTime() throws Exception {
txnScheduler.runTask(
new TestAbstractKernelRunnable() {
public void run() {
Task task = new ManagedTask();
try {
taskService.scheduleTask(task, -1L);
fail("Expected IllegalArgumentException");
} catch (IllegalArgumentException e) {
System.err.println(e);