title: how to invoke a function taking more arguments than the mock-method from within a call-expectation
body: <p>I have a Problem utilizing google mock doing a dedicated verification.</p>
  
  <p>Let's say, I have mock'd a function like this:</p>
  
  <pre><code>MOCK_METHOD1( FuncName, void( ClassType const&amp; ) );
  </code></pre>
  
  <p>(don't care about the mock declaration itself)</p>
  
  <p>I want to place expectations towards FuncName, the way invoking
  a Function, that verifies the instance of ClassType to be valid considering <em>additional</em> arguments:</p>
  
  <pre><code>bool const VerifyIntegrity( ClassType const&amp; Obj, int const&amp; param1, int const&amp; param2 )
  {
     if( param1 == Obj.member1 &amp;&amp; param2 == Obj.member2 ) return true;
     return false;
  }
  </code></pre>
  
  <p>This actually is pseudo-code and the real implementation utilizes templates (deducible) and enumerations, but the example should be sufficient.
  So, how can I invoke VerifyItegrity(...) within a call expectation?</p>
  
  <pre><code>EXPECT_CALL( Mock, FuncName( _ ) ).WillOnce( ...???? );
  </code></pre>
  
  <p>Basically, the question is how can I explicitly select an argument within a call-expectation and use it by an invocation of an <em>arbitrary</em> function (signature).</p>
  
  <p>What I don't want to do is writing a comparison-operato (no need up to now) and creating matching reference objects as they are too many in numbers (permutations).</p>
  
  <p>Thanks in advance- all Replies are appreciated! :)</p>