A man is having his eye examined by someone wearing gloves.
A man is undergoing an eye exam.
Undergoing an eye exam is having an eye examined. The person wearing gloves is left out, it's not a necessary detail.
(-x)
(-x)