How does the Ubermensch accept the tragedies of life, such as the death of loved ones, insults and ridicule, failures etc? (Asking this as someone newly introduced to Nietzsche)

For example, if someone believed in the religious theology such as that of Christians and Muslims, one would say it's God's way of "testing" you for some "eternal reward" in thr afterlife. Nietzsche's Ubermensch wpuld reject this sort of thinking thst is rooted in the supernatural, so what would he view the sadness especially and tragedies of life as?