@Test
public void createServiceTest() {
final ManagedScheduledExecutorServiceImplFactory factory = new ManagedScheduledExecutorServiceImplFactory();
factory.setThreadFactory(MyThreadFactory.class.getName());
final ManagedScheduledExecutorServiceImpl executorService = factory.create();
final ScheduledThreadPoolExecutor poolExecutor = (ScheduledThreadPoolExecutor) executorService.getDelegate();
Assert.assertEquals(poolExecutor.getThreadFactory().getClass(), ManagedThreadFactoryImpl.class);
}