title: Error: java: cannot find symbol symbol: class MockitoJUnitRunner
body: <p>I am starting a fresh Dropwizard project and I am not able to use <code>MockitoJUnitRunner</code> to run tests. </p>
  
  <p>I am able to run the main application. So, I am guessing that it is not a JRE/JDK problem.</p>
  
  <p>Here are a few files from my project:</p>
  
  <p><code>pom.xml</code></p>
  
  <pre><code>&lt;dependency&gt;
              &lt;groupId&gt;junit&lt;/groupId&gt;
              &lt;artifactId&gt;junit&lt;/artifactId&gt;
              &lt;version&gt;4.13&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><code>FooTest.java</code> (For the sake of simplicity, I removed logic.)</p>
  
  <pre><code>import org.junit.Test;
  
  import org.junit.runner.RunWith;
  
  @RunWith(MockitoJUnitRunner.class)
  class FooTest {
    @Test
    public void testSout() {
      System.out.println("This tests works.");
    }
  }
  </code></pre>
  
  <p>I am getting the following error.</p>
  
  <blockquote>
    <p>Error:(20, 10) java: cannot find symbol
      symbol: class MockitoJUnitRunner</p>
  </blockquote>