EngineConfiguration { @Bean @NFlow public AbstractResource nflowNonSpringWorkflowsListing(Environment env) { String filename = env.getProperty("nflow.non_spring_workflows_filename"); if (filename != null) { return new ClassPathResource(filename); } return new ByteArrayResource(new byte[0]); }  @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 nonSpringWorkflowsListingNotInstantiated() throws IOException { assertEquals(configuration.nflowNonSpringWorkflowsListing(environment).contentLength(), 0L); }
@Test public void nonSpringWorkflowsListingInstantiationAttempted() { environment.withProperty("nflow.non_spring_workflows_filename", "dummy"); assertEquals(configuration.nflowNonSpringWorkflowsListing(environment).getFilename(), "dummy"); }