title: Mock not recognized in IntelliJ while using Scala
body: <pre><code>@RunWith(classOf[MockitoJUnitRunner])
  class ScalaTest {
  
    var x  = mock[java.util.Map]
    val y  = mock[ClassA]
    val z  = mock[ClassB]
  }
  </code></pre>
  
  <p>No matter what dependencies I set in my pom file I am not able to get the Mock to work. The compiler just says cannot resolve the symbol <code>Mock</code> and <code>ClassOf</code>. I have shown my dependencies below:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.scalamock&lt;/groupId&gt;
    &lt;artifactId&gt;scalamock-scalatest-support_${scala.version}&lt;/artifactId&gt;
    &lt;version&gt;2.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.scalamock&lt;/groupId&gt;
    &lt;artifactId&gt;scalamock-junit3-support_${scala.version}&lt;/artifactId&gt;
    &lt;version&gt;2.4&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>And the test dependency is:</p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.scalatest&lt;/groupId&gt;
    &lt;artifactId&gt;scalatest_${scala.version}&lt;/artifactId&gt;
    &lt;version&gt;2.0.M3&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
    &lt;groupId&gt;org.mockito&lt;/groupId&gt;
    &lt;artifactId&gt;mockito-core&lt;/artifactId&gt;
    &lt;version&gt;1.9.0&lt;/version&gt;
    &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>These are my imports:</p>
  
  <pre><code>import org.junit.{Test, Before}
  import org.junit.runner.RunWith
  import org.mockito.runners.MockitoJUnitRunner
  </code></pre>
  
  <p>Any suggestions??</p>