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.