title: Mocking scala object
body: <p>I am using mockito and trying to mock a scala object.</p>
  
  <pre><code>object Sample { }
  //test
  class SomeTest extends Specification with ScalaTest with Mockito {
      "mocking should succeed" in {
          val mockedSample = mock[Sample]
       }
  }
  </code></pre>
  
  <p>This gives me two compilation errors.</p>
  
  <pre><code>error: Not found type Sample
  error: could not find implicit value for parameter m:
  scala.reflect.ClassManifest[&lt;error&gt;]
  </code></pre>
  
  <p>If I change Sample from object to class it works.
  Is is possible to mock scala objects with mockito? If yes how?</p>