I’m coding like it’s 2000, meaning in Java. I thought I’d never see anything new regarding writing a test that expects to catch a specific exception. I saw something new, and I wonder who else has independently discovered it. @Test public void ioFailure() throws Exception { final IOException ioFailure = new IOException("Simulating a failure writing to the file."); try { new WriteTextToFileActionImpl() { @Override protected FileWriter fileWriterOn(File path) throws IOException { return n...