anchor.diff:          after_hook = AfterHook
       } = EndedIncarnation,
   
  -    call_if_defined(AfterHook, build_mock_call_ctx(StepMockCallReport, TestCtx)),
  +    call_hook_if_defined(AfterHook, build_mock_call_ctx(StepMockCallReport, TestCtx), TestCtx),
   
       #atm_workflow_execution_incarnation_test_spec{
           lane_runs = [#atm_lane_run_execution_test_spec{
  
positive.code: ) ->
      StepMockCallCtx = build_mock_call_ctx(StepMockCallReport, TestCtx0),
  
      call_if_defined(get_hook(StepMockCallReport, StepMockSpec), StepMockCallCtx),
  
      ExpStateDiff = get_exp_state_diff(StepMockCallReport, StepMockSpec),
      TestCtx1 = case ExpStateDiff(StepMockCallCtx) of
  
negative.code:     Step =:= handle_workflow_interrupted;
      Step =:= handle_workflow_execution_stopped
  ->
      call_hook_if_defined(
          EndedIncarnation#atm_workflow_execution_incarnation_test_spec.after_hook,
          build_mock_call_ctx(StepMockCallReport, TestCtx),
          TestCtx
      ),
      TestCtx#test_ctx{ongoing_incarnations = []};
  
  