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

This is just a small refactor. Wait for it to green though.