title: NoSuchFieldError when trying to run a jUnit test with Spring
body: <p>So far I have two tests. One uses only jUnit framework and works fine. The other one uses spring-test library and creates this exception every time I try to run it. Any ideas what may cause the problem?</p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>java.lang.NoSuchFieldError: NULL
  at org.junit.runners.ParentRunner.&lt;init&gt;(ParentRunner.java:48)
  at org.junit.runners.BlockJUnit4ClassRunner.&lt;init&gt;(BlockJUnit4ClassRunner.java:59)
  at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.&lt;init&gt;(SpringJUnit4ClassRunner.java:104)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
  at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:27)
  at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.&lt;init&gt;(JUnit4TestReference.java:32)
  at org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.&lt;init&gt;(JUnit4TestClassReference.java:25)
  at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest(JUnit4TestLoader.java:41)
  at org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests(JUnit4TestLoader.java:31)
  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:452)
  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
  </code></pre>
  
  <p><strong>Maven test dependencies</strong></p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;junit&lt;/groupId&gt;
      &lt;artifactId&gt;junit&lt;/artifactId&gt;
      &lt;version&gt;4.7&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.springframework&lt;/groupId&gt;
      &lt;artifactId&gt;spring-test&lt;/artifactId&gt;
      &lt;version&gt;${org.springframework.version}&lt;/version&gt;
      &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p><strong>Dependency tree</strong></p>
  
  <pre><code>[INFO] [dependency:tree {execution: default-cli}]
  [INFO] fake:war:1.0-SNAPSHOT
  [INFO] +- log4j:log4j:jar:1.2.16:compile
  [INFO] +- org.springframework:spring-web:jar:3.0.5.RELEASE:compile
  [INFO] |  +- aopalliance:aopalliance:jar:1.0:compile
  [INFO] |  +- org.springframework:spring-beans:jar:3.0.5.RELEASE:compile
  [INFO] |  +- org.springframework:spring-context:jar:3.0.5.RELEASE:compile
  [INFO] |  |  +- org.springframework:spring-aop:jar:3.0.5.RELEASE:compile
  [INFO] |  |  +- org.springframework:spring-expression:jar:3.0.5.RELEASE:compile
  [INFO] |  |  \- org.springframework:spring-asm:jar:3.0.5.RELEASE:compile
  [INFO] |  \- org.springframework:spring-core:jar:3.0.5.RELEASE:compile
  [INFO] |     \- commons-logging:commons-logging:jar:1.1.1:compile
  [INFO] +- commons-codec:commons-codec:jar:1.4:compile
  [INFO] +- org.glassfish:javax.faces:jar:2.1.3:compile
  [INFO] +- org.richfaces.ui:richfaces-components-ui:jar:4.0.0.Final:compile
  [INFO] |  +- org.richfaces.ui:richfaces-components-api:jar:4.0.0.Final:compile
  [INFO] |  \- org.richfaces.core:richfaces-core-api:jar:4.0.0.Final:compile
  [INFO] +- org.richfaces.core:richfaces-core-impl:jar:4.0.0.Final:compile
  [INFO] |  +- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
  [INFO] |  |  \- org.w3c.css:sac:jar:1.3:compile
  [INFO] |  \- com.google.guava:guava:jar:r08:compile
  [INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:compile
  [INFO] |  \- org.slf4j:slf4j-api:jar:1.6.1:compile
  [INFO] +- javax.validation:validation-api:jar:1.0.0.GA:compile
  [INFO] +- javax.xml.bind:jaxb-api:jar:2.2.2:compile
  [INFO] |  +- javax.xml.stream:stax-api:jar:1.0-2:compile
  [INFO] |  \- javax.activation:activation:jar:1.1:compile
  [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.2:compile
  [INFO] +- javax.servlet:jstl:jar:1.1.2:compile
  [INFO] +- junit:junit:jar:4.7:test
  [INFO] +- org.springframework:spring-test:jar:3.0.5.RELEASE:test
  [INFO] +- javax.servlet:jsp-api:jar:2.0:provided
  [INFO] \- javax.servlet:servlet-api:jar:2.4:provided
  </code></pre>