The exception message exact text changes between versions of JUnit, and the message sort of doesn't matter. It seemed sensible to just assert than an exception happened.