EngineConfiguration { @Bean @NFlow public ObjectMapper nflowObjectMapper() { ObjectMapper mapper = new ObjectMapper(); mapper.setSerializationInclusion(NON_EMPTY); mapper.registerModule(new JodaModule()); return mapper; }  @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 nflowObjectMapperInstantiated() { ObjectMapper mapper = configuration.nflowObjectMapper(); assertThat(mapper.canSerialize(DateTime.class), is(true)); assertThat(mapper.getSerializationConfig().getDefaultPropertyInclusion().getValueInclusion(), is(JsonInclude.Include.NON_EMPTY)); }