We learn from Akeidat Yitzchak (the binding of Isaac) how Avraham passed this test through his ability to adapt to Hashem's request. We use this natural coping mechanism to process experiences of hardship realising we can adapt to the sadness. Similarly, euphoric sensations of happiness will also discipate through the same character trait of adaptability.