A urine specimen is taken right after the man has an orgasm. If many sperm are found in the urine under the microscope, the diagnosis is made.