What the Romans intended for mockery, God used for redemption.
Although Jesus made it through Satan's temptations unscathed, the Lord's greatest test was yet to come, and he knew it.
In fact Jesus predicted his own death numerous times to his disciples. Although they couldn't comprehend the implications of Jesus's words, these statements are important to demonstrate that Jesus wasn't taken by surprise at his execution and that he willingly served as a sacrifice on our behalf.
His predictions notwithstanding, this latter fact should be obvious since Jesus made no defense on his behalf despite false testimony against him. In addition Jesus could have simply avoided Jerusalem where the heat on him was the hottest had he desired to avoid crucifixion. And yet again he could have slipped away from his captors in Gethsemane as he did earlier in Nazareth when the synagogue congregates tried to throw him down a cliff.
Jesus was going to the cross, and he knew it.