Implement Mock.throws()
Refactor throws() implementation.