I was surprised to hear that he failed the examination. He was a man who should have passed it.
I was surprised that he should have failed in the examination; he ought to have succeeded.