This doesn't work yet.

The reason is that we should fail (in case of the paramters don't match)
while in the mock(), but we don't know whether we failed or not until
after the mock returned.
Experimenting...