Test invokes EJB A that creates Entity E1, EJB also invokes EJB B that creates Entity E2 using id of E1 as one of the field, and then test finally looks up E2 by created Id and checks that it fields equals id of E1