FixedFrequencySchedulerFactory factory = new FixedFrequencySchedulerFactory();
factory.setFrequency(300);
factory.setStartDelay(400);
factory.setTimeUnit(TimeUnit.DAYS);
Scheduler scheduler = factory.doCreate("name", new PollingReceiverWorker(receiver));
assertTrue(scheduler instanceof FixedFrequencyScheduler);
assertEquals(300, ((FixedFrequencyScheduler) scheduler).getFrequency());
assertEquals(TimeUnit.DAYS, ((FixedFrequencyScheduler) scheduler).getTimeUnit());
assertEquals("name", scheduler.getName());