public void enrichWorkflowDefinition(WorkflowDefinition workflowDefinition) {
    WorkflowDefinitionExtras enrichedWorkflowDefinition = new WorkflowDefinitionExtras();
    enrichParams(workflowDefinition, enrichedWorkflowDefinition);
    enrichNextRunDate(workflowDefinition, enrichedWorkflowDefinition);
    workflowDefinition.setEnrichedExtras(enrichedWorkflowDefinition);
  }
@Test
  public void testEnrichWorkflowDefinitionCron() throws IOException {
    definition =
        loadObject(
            "fixtures/workflows/definition/sample-active-wf-with-cron-named-triggers.json",
            WorkflowDefinition.class);
    workflowEnrichmentHelper.enrichWorkflowDefinition(definition);
    Assert.assertNotNull(definition.getEnrichedExtras());
    Assert.assertNotNull(definition.getEnrichedExtras().getNextExecutionTime());
    Assert.assertEquals(2, definition.getEnrichedExtras().getNextExecutionTimes().size());
  }