title: How to mock date in mockito?
body: <p>Here is my scenario</p>
  
  <pre><code>public int foo(int a) {
     return new Bar().bar(a, new Date());
  }
  
  My test:
  Bar barObj = mock(Bar.class)
  when(barObj.bar(10, ??)).thenReturn(10)
  </code></pre>
  
  <p>I tried plugging in any(), anyObject() etc. Any idea what to plug in ?</p>
  
  <p>However I keep getting exception:</p>
  
  <pre><code>.mockito.exceptions.misusing.InvalidUseOfMatchersException: 
  Invalid use of argument matchers!
  3 matchers expected, 1 recorded:
  
  
  This exception may occur if matchers are combined with raw values:
      //incorrect:
      someMethod(anyObject(), "raw String");
  When using matchers, all arguments have to be provided by matchers.
  For example:
      //correct:
      someMethod(anyObject(), eq("String by matcher"));
  
  For more info see javadoc for Matchers class.
  </code></pre>
  
  <p>We dont use powermocks.</p>