Your health care provider will ask about your past health and examine you. He/she may test a urine sample and look for bacteria under a microscope. He/she may also try to grow a culture of the urine sample . In acute epididymitis the urine is often infected. In chronic epididymitis the urine typically is not infected.
If your provider thinks you have urethritis, they may test a swab of fluid from your urethra. If your pain came on quickly and severely, he/she may use ultrasound to look more closely at your testicle. Ultrasound is a non-invasive test. It uses sound waves bouncing off structures in your body to make a picture. Ultrasound can measure the blood flow in the epididymis, examine the inside of the testis and see other changes in that area of the body.
Other tests may be used, but not often.
The right diagnosis makes sure you get the right treatment.