// if these tests starts to fail or cause other timing
// problems, we need to find a better way to run
// test without adding too long sleeps
TaskScheduler taskScheduler = new ConcurrentTaskScheduler();
TaskExecutor taskExecutor = new ConcurrentTaskExecutor();
TestPollingTaskSupport poller = new TestPollingTaskSupport(taskScheduler, taskExecutor);
IdleTimeoutTrigger trigger = new IdleTimeoutTrigger(1000);
poller.setTrigger(trigger);
poller.init();
poller.start();