Teach ExpectedException how to annotate errors.