mock function method re-written only with methodVisitor (lower level of abstraction)