The temptations are the persecutions which test our allegiance to Christ Jesus. When we take a stand for Christ, the joy of the HolySpirit manifests in us.
Since this letter is directed to Jewish believers it is worth noting that Jewish believers suffered immediate persecution from their families.