title: error: cannot access BlockJUnit4ClassRunner
body: <p>While i run the mvn install I'm able to find this above error .</p>
  
  <p>This is my POM.xml i have configured JUnit.</p>
  
  <pre><code>      &lt;dependency&gt;
            &lt;groupId&gt;junit&lt;/groupId&gt;
            &lt;artifactId&gt;junit&lt;/artifactId&gt;
            &lt;version&gt;4.4&lt;/version&gt;
            &lt;scope&gt;test&lt;/scope&gt;
        &lt;/dependency&gt;
  </code></pre>
  
  <p>This is the service Test class</p>
  
  <pre><code>   @RunWith(SpringJUnit4ClassRunner.class)
     @ContextConfiguration
     public class ServiceTestCase {
  
     protected static final Logger LOG =  Logger.getLogger(ServiceTestCase.class);
  
     @Configuration
     static class AccountServiceTestContextConfiguration {
      ....
      ....
      ....
     }
  </code></pre>
  
  <p>While compiling the above error I am getting.
  this Test class I have created in src/test/java</p>
  
  <p>can any one please suggest. How to resolve this ?</p>
  
  <p>When I remove the  I am getting error as @Test is not recognise.</p>