ExecutorConfig extends Config { Executor createExecutor(String name, int poolSize) { var executor = new ExecutorImpl(poolSize, name, context.logManager); context.shutdownHook.add(ShutdownHook.STAGE_2, timeout -> executor.shutdown()); context.shutdownHook.add(ShutdownHook.STAGE_3, executor::awaitTermination); return executor; }  Executor add(); Executor add(String name, int poolSize);  }
@Test void createExecutor() { Executor executor = config.createExecutor(null, 1); assertThat(executor).isNotNull(); }