What does men's fertility testing consist of?

Other than jerking off in a cup.

My husband is nervous and says the Dr will stick a finger in his butt. Maybe I'm wrong, but I don't think that's part of the fertility testing.

Can someone list off everything their husbands had to have done?