Added support for assertThrows.