Fix mock method signature.