It would be much better to have a more selective sniff test here than just "threw any kind of Exception".
All that takes to pass is an NPE -- which is not going to make for a very friendly error message.
We should pass in an expected error pattern or substring and fail if it doesn't show up in e.toString().