title: How do you use ScalaMock with ScalaTest?
body: <p>I tried the following</p>
  
  <pre><code>import org.scalatest._
  import org.scalamock._
  import org.scalamock.scalatest._
  
  class TestMock extends FlatSpec with MockFactory with ShouldMatchers {
    "foo" should "bar" in {
      val obj = mock[Object]
      //...
    }
  }
  </code></pre>
  
  <p>and the compiler tells me that the self type of <code>TestMock</code> does not conform to that of <code>MockFactory</code>. So I changed the class to</p>
  
  <pre><code>class TestMock extends FlatSpec with MockFactory with ShouldMatchers {
    self : MockFactory with Suite =&gt;
    "foo" should "bar" in {
      val obj = mock[Object]
      //...
    }
  }
  </code></pre>
  
  <p>and now it complains that <code>mock</code> is not a value.</p>
  
  <p>I'm using scalatest_2.10-2.0.M5b.jar and scalamock-scalatest-support_2.10-3.0.1.jar.</p>
  
  <p>What am I doing wrong?</p>