What might be causing mild pain in my right testicle?

Groin and testis. Pain in the scrotum can be acute and or emergent, or mild and non emergent. Hernia, torsion (twisting), tumor and infection are the most likely culprits and need to be evaluated by a good exam, urine testing and sonogram.