An X-ray study of the vas deferens to see if it is blocked