assertThrown doesn't need to use a variable for a throw check.