Is the type of exception specified for this? You could check the exception has the right code/type/etc.