> Also why do we need @EJB and @Stateless?

I'm about to write a test with an EJB, which retrieves validator and validator factory via `@Resource`. I need `@Stateless` to mark the EJB and use `@EJB` to inject it into the test class. Theoretically it should be possible to inject the JNDI-bound validator and factory also directly into the test class using `@Resource`, but as we discussed yesterday this doesn't work for some reason.

But using an EJB is IMO not even that bad, because that way we know that injection into EJBs using `@Resource` is working as expected. 

I could add `javax.enterprise:cdi-api:1.1-PFD` and `org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec:1.0.0.Alpha2`, which seem the be the latest (EE 7) JARs of the two APIs.