title: Verify method call with OCMockito
body: <p>I have these two methods in a ClassA</p>
  
  <pre><code>-(IBAction)onSubmit;
  -(void)validateName:(NSString*)name;
  </code></pre>
  
  <p>@Implementation</p>
  
  <pre><code>- (IBAction)onSubmit {
      [self validateName:self.textfield.text];
  }
  
  -(void)validateName:(NSString*)name{
      // do something
  }
  </code></pre>
  
  <p>My test look like the below:</p>
  
  <pre><code>//given
  ClassA *classA = mock([ClassA class]);
  classA.textfield.text = @"Foo";
  
  // when 
  [classA onSubmit];
  
  [verify(classA) validateName:@"Foo"];
  </code></pre>
  
  <p>But that doesn't work, I keep getting:</p>
  
  <pre><code>Expected 1 matching invocation, but received 0
  </code></pre>
  
  <p>How can I write a test that verifies that validateName is executed, when onSubmit is being called.</p>