title: intellij junit @RunWith not resolved
body: <p>I have the following test code:</p>
  
  <pre><code>package soundSystem;
  
  import static org.junit.Assert.*;
  
  import org.junit.Test;
  import org.junit.runner.RunWith;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.test.context.ContextConfiguration;
  import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
  
  
  @RunWith(SpringJUnit4ClassRunner.class )
  @ContextConfiguration(classes = CDPlayerConfig.class)
  
  public class SonyCDPlayerTest {
  
  @Autowired
  private ICompactDisk cd;
  
  @Test
  public void cdShouldNotBeNull() {
      assertNotNull(cd);
  }
  
  }
  </code></pre>
  
  <p>This is a maven project, the problem is the exact same code would run in eclipse, but not in intellij. </p>
  
  <p>I just can't find a way to resolve @RunWith</p>
  
  <p><a href="https://i.stack.imgur.com/JsDfQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/JsDfQ.png" alt="screen shot from intellij"></a></p>