title: Surefire is not picking up Junit 4 tests
body: <p>For some reason I cannot get Maven 2 Surefire plugin to execute JUnit 4 test class.</p>
  
  <pre><code>public class SimpleTest {
    @org.junit.Test
    public void simple() {
       System.out.println("foo");
    }
  }
  </code></pre>
  
  <p>However if I change this class to be JUnit-3 like, such as </p>
  
  <pre><code>public class SimpleTest extends junit.framework.TestCase {
    public void testBar() {
       System.out.println("bar");
    }
  
    @org.junit.Test
    public void simple() {
       System.out.println("foo");
    }
  }
  </code></pre>
  
  <p>then it gets executed. Here's what I've done:</p>
  
  <ul>
  <li>verified Maven version: Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100)</li>
  <li>verified Surefire version: followed <a href="https://stackoverflow.com/questions/1336379/how-do-i-configure-maven-2s-surefire-plugin-to-run-junit-4-5">this</a> advice</li>
  <li>verified Surefire version: checked Surefire jars in my <code>~/.m2/repository/org/apache/maven/surefire</code> -- all of them are either version 2.4.2 or 2.4.3</li>
  <li>done a <code>mvn dependency:tree | grep junit</code> to ensure I only depend on junit version 4.7</li>
  </ul>
  
  <p>The module I am having this problem at doesn't have JUnit 3 tests.</p>
  
  <p>Is there anything else I am missing?</p>