private static void FinishActionExecuted(TestableController controller, bool throwException = false)
        {
            var actionExecutedContext = new ActionExecutedContext();
            if (throwException)
            {
                actionExecutedContext.Exception = new Exception();
            }

            controller.OnActionExecuted(actionExecutedContext);
        }