Men fertility testing

I’m wonder if anyone ladies have had a hard time convincing their husbands to eliminate for testing. Sexual immorality is a big no no in our family and if we ever have to go to a fertility doctor I know my husband will not submit a sample for testing.