How to check neutral safety switch

When you are checking the switch, are you pushing in the contact ball on the switch at the same time? If I remember correctly, it produces a ground from the switch body to the center prong.
I checked to the body of the sensor to middle prong and moved it to rev and park no continuity .I am going to take it out and replace it with a new one when i get home the pan is on the trans just had it all redone trying to make sure this switch is working before i put it in