I\'m working with tree walkers (on an ANTLR generated parser) and sometimes they throw exceptions which I want handled differently under unit test and production. In unit t