Unfortunately, it only emulates the error case. Refactoring this test that way sounds reasonable. I'll play with it.