title: What dependencies do I need for embedded ActiveMQ broker?
body: <p>I'm trying to use embedded ActiveMQ broker for unit testing, as explained here: <a href="http://activemq.apache.org/how-to-unit-test-jms-code.html">http://activemq.apache.org/how-to-unit-test-jms-code.html</a></p>
  
  <p>What Maven dependencies I need to include? At the moment I have just these:</p>
  
  <pre><code>&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;dependency&gt;
    &lt;groupId&gt;org.apache.activemq&lt;/groupId&gt;
    &lt;artifactId&gt;activemq-core&lt;/artifactId&gt;
    &lt;version&gt;5.5.0&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>This is what I'm getting:</p>
  
  <pre><code>java.lang.ClassFormatError: Absent Code attribute in method that 
  is not native or abstract in class file javax/jms/JMSException
  </code></pre>
  
  <p>When trying to instantiate a broker:</p>
  
  <pre><code>final BrokerService broker = new BrokerService();
  </code></pre>
  
  <p>What else should I add to the list of Maven dependencies? (I'm <strong>not</strong> using Spring)</p>