Fixed compile error with new tests.

Since JUnit was upped to 4.X, I switched to having JUnit validate the expected exception instead of the old try/catch verify method.
This is perfect. Thanks for doing this!