title: Detach Entity without EntityManager
body: <p>For a test, I need to detach an entity, but I have no direct access to the EntityManager. So I cannot use something like:</p>
  
  <pre><code>em.detach(myEntity);
  </code></pre>
  
  <p>Is there another easy way to simply detach an entity? I do have access to my embedded EJBContainer.</p>