Only hoist the last statement into the assertThrows() lambda.
#5842
+22
−38
assertThrows() lambda.
#5842