@Test
public void testServices() throws Exception {
assertTrue(manager.getServices().get(Validator.class) instanceof ConcurrentValidator);
assertTrue(manager.getServices().get(ContainerLifecycleEvents.class).isPreloaderEnabled());
assertTrue(manager.getServices().get(ExecutorServices.class) instanceof TimingOutFixedThreadPoolExecutorServices);
TimingOutFixedThreadPoolExecutorServices executorServices = (TimingOutFixedThreadPoolExecutorServices) manager.getServices().get(ExecutorServices.class);
// Use full capaticy of the pool
assertEquals(3, executorServices.getPoolSize());
Thread.sleep(7000l);
// All workers timed out
assertEquals(0, executorServices.getPoolSize());
}