The more difficult it is to perform a good deed, the greater the merit of that act. This also applies to the mitzvah of feeling joy in fulfilling commandments. For example:

If a person is sad, and nevertheless works hard to banish those sad thoughts and to feel the joy of doing mitzvahs, his merit is greater than that of someone who was in a good mood to begin with!