Pretty simple work around, work out if it is normally open or normally closed with the stand retracted (open circuit or closed circuit).
If it is normally open (no circuit) then just un plug it and take the bike for a ride to test. If normally closed (you have a contenuity across the switch) then bridge the plug with a piece of wire on the loom side, and take the bike for a ride to test.