Premarital sex would have solved this mystery.
Ever saw M. Butterfly? Apparently based on a true story--scratching my head since the "woman" in question had all his equipment and was not a hermaphrodite or anything like that. The duped man was even fooled to the extent of believing the he/she person had his baby.