Testicular torsion is often found with a physical exam by a doctor. X-ray tests may also be used. Ultrasound and other techniques can check blood flow to the testes. If a urine test shows a urinary tract infection, your health care provider will do more tests. He or she will want to know if the pain is from an infection of the testicle or epididymis. (The epididymis is a coiled tube on the back of the testes.)
Torsion must be treated quickly. Your urologist may do surgery if torsion is happening.