Assert on action middleware code path.