@Test
public void updateWorkflowInstanceCreatesActionWhenCreateActionIsTrue() {

  WorkflowInstance instance = updateInstanceBuilder().build();
  WorkflowInstanceAction action = constructActionBuilder(instance.id).build();
  dao.updateWorkflowInstanceAfterExecution(instance, action, noChildWorkflows, emptyWorkflows, true);
  assertThat(updatedInstance().actions.size(), is(1));
}