EngineConfiguration { @Bean @NFlow public ThreadFactory nflowThreadFactory() { CustomizableThreadFactory factory = new CustomizableThreadFactory("nflow-executor-"); factory.setThreadGroupName("nflow"); return factory; }  @Bean WorkflowInstanceExecutor nflowExecutor(@NFlow ThreadFactory nflowThreadFactory, Environment env); @Bean @NFlow ThreadFactory nflowThreadFactory(); @Bean @NFlow ObjectMapper nflowObjectMapper(); @Bean @NFlow AbstractResource nflowNonSpringWorkflowsListing(Environment env);  }
@Test public void nflowThreadFactoryInstantiated() { ThreadFactory factory = configuration.nflowThreadFactory(); assertThat(factory, instanceOf(CustomizableThreadFactory.class)); assertThat(((CustomizableThreadFactory) factory).getThreadNamePrefix(), is("nflow-executor-")); assertThat(((CustomizableThreadFactory) factory).getThreadGroup().getName(), is("nflow")); }