title: Simple use of Mockito AnyMap is not working
body: <p>Why does anyMap not work here in this simple case? I get func1 cannot be matched with this signature?</p>
  
  <pre><code>case class foo() {def func1 (m: Map[Int, Int]) = m.size }
  
  case class SomeTest extends SomeSpec MockitoSugar with MustMatchers {
     it("checks size ") { fixture =&gt;
        val spyfoo = spy(foo())
        doReturn(5).when(spyfoo).func1(anyMap())}
  </code></pre>
  
  <p>I get the func1 cannot be recognized with this signature</p>