title: NotAMockException while Mockito.verify(Object,VerificationMode.atleast(2))
body: <p>I am using mockito for mock the unit test cases and am getting the following exception</p>
  
  <pre><code>org.mockito.exceptions.misusing.NotAMockException: 
  Argument passed to verify() is of type ConsumerImpl and is not a mock!
  Make sure you place the parenthesis correctly!
  See the examples of correct verifications:
      verify(mock).someMethod();
      verify(mock, times(10)).someMethod();
      verify(mock, atLeastOnce()).someMetenter code herehod();
  </code></pre>
  
  <p>and my code is </p>
  
  <pre><code> MessageConsumer mConsumer = Mockito.mock(MessageConsumer.class);
              String data = "new Message for Testing";
              Message message = new Message(data.getBytes());
              Mockito.when(mConsumer.next(10, TimeUnit.SECONDS)).thenReturn(message);
              StringParserTest parserTest = new StringParserTest();
              ConsumerImpl&lt;String&gt; consumer = new ConsumerImpl&lt;String&gt;(mConsumer, parserTest);
              String mes=Mockito.verify(consumer,VerificationModeFactory.times(3)).consumeMessage(10,TimeUnit.SECONDS);
  </code></pre>
  
  <p>Please some one help me to solve this problem</p>
  
  <p>Thanks in Advance</p>
  
  <p>SRN</p>