title: Run JUnit test in a maven project that depends on javaee 6 api
body: <p>Im trying to run a test that depends on Javaee6-api.
  My pom setup is the following:</p>
  
  <pre><code>&lt;project&gt;
     &lt;dependencies&gt;
        &lt;dependency&gt;
           &lt;groupId&gt;javax&lt;/groupId&gt;
           &lt;artifactId&gt;javaee-api&lt;/artifactId&gt;
           &lt;version&gt;6.0&lt;/version&gt;
           &lt;scope&gt;provided&lt;/scope&gt;
        &lt;/dependency&gt;
        [...]
     &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When i run my JUnit test i get the following exception:</p>
  
  <pre><code>   java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file javax/faces/event/FacesEvent
          at java.lang.ClassLoader.defineClass1(Native Method)
          at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
          at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
          at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
  
  
          at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
              at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      [...]
              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>