I imagine they would be tested by submitting to gay sex. Refusal would be noted on their permanent record as a registered homophobe.
Guess I would fail that test. Do you get a great big “H” stamped on your record? Or maybe you get an “H” tattooed on your forearm.