title: Scala mock, MockFactory expects fails with 'Unexpected call'
body: <p>I'm trying to follow <a href="http://www.scalatest.org/user_guide/testing_with_mock_objects" rel="nofollow noreferrer">this doc</a> - <code>scalatest</code> with <code>scala-mock</code> to mock the function and check if it has been called</p>
  
  <pre><code>class AggregateSpec extends FlatSpec with Matchers with MockFactory {
  
   val data = Seq("This", "is", "something", "I", "would", "like", "to", "know")
  
  "combop function" should "BE called for par collection" in {
  
      val mockCombop = mockFunction[Int, Int, Int]
  
      val parData = data.par
  
      val result: Int = parData.aggregate(0)(
        seqop = (acc, next) =&gt; acc + next.length,
        combop = mockCombop
      )
  
      result should === (31)
      mockCombop.expects(*, *).atLeastOnce()
  
    }
  }
  </code></pre>
  
  <p>As result:</p>
  
  <pre><code>&gt; [info] - should BE called for non-par collection *** FAILED *** [info]
  &gt; Unexpected call: MockFunction2-1(4, 2) [info]    [info]   Expected:
  &gt; [info]   inAnyOrder { [info]    [info]   } [info]    [info]   Actual:
  &gt; [info]     MockFunction2-1(9, 1) [info]     MockFunction2-1(2, 4)
  &gt; [info]     MockFunction2-1(4, 2) [info]     MockFunction2-1(5, 4)
  &gt; (Option.scala:121)
  </code></pre>
  
  <p>Why? How to make it pass with scalatest + scala-mock ?</p>
  
  <p>--</p>
  
  <p>As deps I use:</p>
  
  <pre><code>   libraryDependencies += "org.scalactic" %% "scalactic" % "3.0.1",
      libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.1" % "test",
      libraryDependencies += "org.scalamock" %% "scalamock-scalatest-support" % "3.5.0"
  </code></pre>