ExpectedException might not be what you've expected