Did you ever notice when someone is show off a diamond to buy the back round is usually black. That is because the Diamond sparkles and shines brighter against the darkness.
That is how our joy should be seen to the world. We need to be offering praises when in pain or going through trials because God calls us to be joyful at all times (Philippians 4:4).
If we are truthful with ourselves we need our joy most when things are in the black. We need joy when we're suffering and misunderstood, when we're rejected and hated, and when we're in emotional or physical pain. But our praise to God gives the Spirit room to touch us with His joy that will overshadows these circumstances.
It's awesome to see, with the praise our joy become the sparkle of a diamond being shown.