Not sure what `ThrownExpectations` does, but I wrote a lot of test code like this in my early Scala days.