@Test
public void dispatcherPoolExecutorInstantiationFromQueueSize() {

  environment.setProperty("nflow.dispatcher.executor.queue.size", "10");
  WorkflowInstanceExecutor executor = configuration.nflowExecutor(threadFactory, environment);
  assertThat(executor.getQueueRemainingCapacity(), is(10));
}