Stub a mock with given stubbing configuration.
the mock to stub.
the stubbing configuration to apply to the mock.