Imagine things are going well for you. You are obedient to God and see him bless you. You worry about nothing except the salvation of your children. It's easy to worship God in good times, but what about bad? This is Satan's proposition to God.
God: job is righteous, have you considered testing him?
Satan: he is righteous in good times, but he will deny You in bad.
Isn't this the age old question? Why do bad things happen to good people? Job gives us a case study, only, God tips His hand from the beginning. We see God tell us, Job is being tested because God believes in him. So we know the why, now we get to see how he responds.
Job has a bad day. The worst. One servant after another delivers the messages to him, his livelihood(livestock), his wealth(camels), and his legacy(children) are all taken away. Job demonstrates the proper response, "The Lord gave, and the Lord has taken away; blessed be the name of the Lord.” And Job fell down in worship. Everything was taken from Job except his joy. Joy rests in the Giver not the gifts. How would you respond in the face of devastating loss? Would your faith waiver? If so, you may be worshipping the gift not the giver.