title: "not found: value classOf" error when building scala in IntelliJ IDEA, but builds correctly in maven
body: <p>I have written a small piece of test code and am compiling it with IntelliJ IDEA 12 CE</p>
  
  <pre><code>import com.twitter.common.zookeeper.ZooKeeperClient
  import org.mockito.Mockito
  
      class MyResourceSpec { 
        val zkClient = mock(classOf[ZooKeeperClient])
        ...
      }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>not found: value classOf
    val zkClient = mock(classOf[ZooKeeperClient])
                   ^
  </code></pre>
  
  <p>However I am able to build the project successfully using mvn compile. Also, I have another test file in the same directory "MyOtherResourceSpec.scala" which contains the exact same lines of code.</p>
  
  <p>Any thoughts on why this doesn't build correctly in IDEA? </p>
  
  <p>Things I've tried:</p>
  
  <ul>
  <li><p>A coworker suggested that IDEA might not recognize it as a scala file, and I've tried clicking on the top-level project and then
  clicking Maven > reimport.</p></li>
  <li><p>Restarting IntelliJ</p></li>
  <li><p>Copying all imports from "MyOtherResourceSpec.scala" in case something was missing</p></li>
  <li><p>using Mockito.mock(classOf[ZooKeeperClient])</p></li>
  </ul>