}
@Test
public void scheduledThreadPollDefaults() throws Exception
{
ThreadingProfile threadingProfile = muleContext.getDefaultThreadingProfile();
ScheduledExecutorService executorService = threadingProfile.createScheduledPool("sapo pepe");
assertThat(executorService, notNullValue());
assertThat(executorService, instanceOf(ScheduledThreadPoolExecutor.class));
ScheduledThreadPoolExecutor scheduledPool = (ScheduledThreadPoolExecutor) executorService;
assertThat(scheduledPool.getContinueExistingPeriodicTasksAfterShutdownPolicy(), is(false));
assertThat(scheduledPool.getExecuteExistingDelayedTasksAfterShutdownPolicy(), is(true));
assertThat(scheduledPool.getMaximumPoolSize(), is(threadingProfile.getMaxThreadsActive()));
assertThat(scheduledPool.getCorePoolSize(), is(threadingProfile.getMaxThreadsIdle()));
assertThat(scheduledPool.getKeepAliveTime(TimeUnit.MILLISECONDS),is(threadingProfile.getThreadTTL()));
}