Fix expectDeprecation with callback.
Merge pull request #137 from rwjblue/expected-deprecation-with-callback-test

Fix expectDeprecation with callback.