Give the traffic court judge the name, address, and telephone number of the shop your car is in. Give the shop owner and mechanic(s) a heads up so that they will be expecting a call. They can verify to the judge [or clerk doing the legwork] that your brake lights are working.
OR
Send a letter to the judge saying that your brake lights are working just fine: it's the
brakes that aren't working; but, since you just filled up the gas tank you'd be happy to drive the car over to them so they can get a close look at the lights.
I bet they waiver your court appearance.
