So what are you trying to achive there?
What's your project structure? (are you using Maven?)
Did I understand correctly, that you have annotated the Test class with
@Stateless? (why did you do that?)
Could you try this with 3.1-SNAPSHOT glassfish-embedded-all?
The test code belongs to which module (EJB?)?
Regards,
Peter