public Task<object> InvokeGenericTaskWithRunAndSleep() { return Task.Run((Func<object>)(() => { Thread.Sleep(100); throw _exceptionToThrow; })); }