lid switch

how do you test the magenit lid switch for a ge washing machine?