How do you change a brake switch?

on most cars and trucks it is located at the base of the brake pedal use multi tester to see if it bad before removing it good luck rich