@Test
public void shouldCreateWorkflowInstanceParameter() throws Exception {

  for (Map.Entry<Schedule, String> scheduleCase : SCHEDULE_ARG_EXPECTS.entrySet()) {
    reset(stateManager);
    WorkflowConfiguration workflowConfiguration = dockerWorkflowConfiguration(
        scheduleCase.getKey(), "--date", "{}", "--bar");
    Workflow workflow = Workflow.create("id", workflowConfiguration);
    trigger.event(workflow, NATURAL_TRIGGER, TIME, PARAMETERS);
    WorkflowInstance expectedInstance = WorkflowInstance.create(workflow.id(), scheduleCase.getValue());
    verify(stateManager).trigger(expectedInstance, Trigger.natural(), PARAMETERS);
  }
}