@Test
@Ignore("not sure what this test really does, except test countdown latch and thread context switching")
public void testSingleInstanceSchedule() throws Exception
{
latch = new CountDownLatch(3);
Injector inject = Guice.createInjector(new TestModule());
PriamScheduler scheduler = inject.getInstance(PriamScheduler.class);
scheduler.start();
scheduler.addTask("test2", SingleTestTask.class, SingleTestTask.getTimer());
// verify 3 tasks run or fail in 1s
latch.await(2000, TimeUnit.MILLISECONDS);