// work that will sleep 3 seconds
tr = new TestCallable(3000L);
long nearFuture = System.currentTimeMillis() + 500;
Schedule schedule = getEverySecondSchedule(new Date(nearFuture), new Date(nearFuture + 4900));
ScheduledTask<Integer> st = defaultScheduler.schedule("default", tr, schedule);
assertEquals(1, defaultScheduler.getActiveTasks().size());