In maven2 you can enable the javaagent for your tests by adding this to your pom.xml file:
<build>
<plugins>
<!-- this configures the surefire plugin to run your tests with the
javaagent enabled -->
<!-- this tells maven to copy the openejb-javaagent jar into your
target/ directory -->
</plugins>
</build>