static boolean willCreateNewThreadPool(CamelContext camelContext, DynamicRouterConfiguration cfg, boolean useDefault) {
        ObjectHelper.notNull(camelContext.getExecutorServiceManager(), ESM_NAME, camelContext);
        return Optional.ofNullable(cfg.getExecutorServiceBean())
                .map(esb -> false)
                .or(() -> Optional.ofNullable(cfg.getExecutorService())
                        .map(es -> lookupByNameAndType(camelContext, es, ExecutorService.class).isEmpty()))
                .orElse(useDefault);
    }
@Test
    void testWillCreateNewThreadPoolWithExecutorServiceBean() {
        when(camelContext.getExecutorServiceManager()).thenReturn(manager);
        when(mockConfig.getExecutorServiceBean()).thenReturn(existingThreadPool);
        assertFalse(DynamicRouterRecipientListHelper.willCreateNewThreadPool(camelContext, mockConfig, true));
    }