In the 16th century France, women could charge their husbands with impotence as a reason for divorce. The convicted husbands would have to prove themselves in a public trial through successfully ejaculating.

Fact source