Fixing build failure: a incorrect method mocking

@diogobaeder An incorrect method mock caused the failure. I'd seen the flaws but had not found the error. Now I believe that will work.