TestCase::assignMockCallbacks

Assigns mock callbacks to methods.