Now checking for the right wrapped exception in one of the TestSecurity cases.