How can I use JUnit4 idiomatically to test that some code throws an exception?
While I can certainly do something like this:
@Test public void testFo
JUnit has built-in support for this, with an "expected" attribute.