You need to ask yourself: "What exactly am I trying to verify?" the first.
If you want to test your EJB3 separately, remember that EJB3 is just a POJO. You can call the class directly from the jUnit testing method.
If you want to test your EJB, application server, container and your network (if @Remote annotation is used), you can write an integration test class that looks for @Remote or @Local EJB in the JNDI tree of your container:
@Test
public void callEjb() throws Exception {
Context context = new InitialContext();
YOUR_EJB_CLASS myEjb = (YOUR_EJB_CLASS) context
.lookup(JNDI_PATH_FOR_YOUR_EJB);
myEjb.myMethod();
}
If you want to test EJB as an EJB and separate from the EJB Container, then EJB3 may be what you are looking for.
P.S. Maven . , , ant.