Added support for verify that expected exception occurred.