How to test for reverse polarity
Connect one lead of a voltmeter (since we're probably speaking AC here, which lead doesn't matter) to ground and measure for voltage at the center contact of the light socket and the rim. The voltage at the rim should be at or near ground (zero) and the center contact, hot.As always, make sure you know how to handle test equipment and high voltage properly. If in doubt, hire someone.