public ExecutorService getExecutorService() {
        return executorService;
    }
@Test
    public void testTikaExecutorServiceFromConfig() throws Exception {
        URL url = getResourceAsUrl("TIKA-1762-executors.xml");

        TikaConfig config = new TikaConfig(url);

        ThreadPoolExecutor executorService = (ThreadPoolExecutor) config.getExecutorService();

        assertTrue((executorService instanceof DummyExecutor), "Should use Dummy Executor");
        assertEquals(3, executorService.getCorePoolSize(), "Should have configured Core Threads");
        assertEquals(10, executorService.getMaximumPoolSize(),
                "Should have configured Max Threads");
    }