title: How do I mock static function (Object function, not class function) in scala
body: <pre><code>Object A {
    def a = { something}
  }
  </code></pre>
  
  <hr>
  
  <pre><code>// I've import A, but still have error message:  not found: type A
  val x = mock[A]
  </code></pre>