You were pulled over and given a ticket for a tail light that is out but was working when you left work.
When you go to court you explain to the judge that yes it was out but because of faulty wiring it stopped working when you hit a pot hole just before you were pulled over.