Although he is hidden to me in this way, the things which act about me are not hidden from me, and so he continues, "But he knows my way," the whole course of my life. Job seems to say this against what Eliphaz had said before about the person of evil men as if he had attributed this position to Job, "The clouds are his hiding place and he does not see ours." (22:14) Since someone could object that, "If he knows your way, then, he punished you because of your sins," he answers, "and he will prove me as gold which passes through fire." Here he first clearly introduces the cause of his adversity... which was brought on him so that from it he might appear proven before men. Just as gold is proven which can sustain fire; and just as gold does not become true gold because of the proof of fire, but its truth is clearly shown to men, so Job has been proved by adversity, not that his virtue might be manifested in the presence of God, but that it might be clearly shown to men. Moreover he says, "he will prove," about the future, as if to show that he is even ready for future testing because of his patience.
Source: Commentary on Job