The teaching that always comes to my mind: Job was steadfast. God knew that.
Yeah, and God also knew the outcome of Job's trials...why teach Job a lesson when he couldn't have done differently?