See 7e4afa0 for the commit fixing the expected exception to use the real one.