I'm trying to create some integration tests for a j2ee application. The DAO layer requires a EJBContext so that it can call context.getUserTransaction() and utx.begin(). Using Guice i managed to get the EngityManager working. But the EJBContext is now null. Any ideas how to get this working.
@Resource
protected EJBContext context;