Difficulties and trials would not normally be considered an occasion for joy, but James and Paul exhort us to look beyond the immediate pain and discomforts of trials to the lasting effect they have on the character of the Christian. It is the expectation of results, the development of our character, that should cause us to rejoice in adversity.