Catching the wrong exception in a Unit Test