Something to think about:
"Dear brothers and sisters, when troubles come your way, consider it an opportunity for great joy." – James 1:2 (New Living Translation)
The version of the Bible I was reading offline – also New Living Translation, but apparently a different edition – replaces "consider" with "let," which for some reason strikes me more powerfully. The point being, simply, that trouble does not automatically bring joy (obviously). We must choose to view that trouble as an opportunity for joy – even great joy!