Testicular pain is a fairly common condition treated by urologists. Frequent causes include infection of the testicle (orchitis) or epididymis (epididymitis), post surgical pain, trauma, tumors, hernia, torsion (twisting of the testicle), varicocele, hydrocele or spermatocele.