Flow flow = assembler.assembleFlow();
context.registerSubflow(flow);
Flow notManaged = new Flow("notmanaged");
new EndState(notManaged, "finish");
context.registerSubflow(notManaged);
context.registerBean("loadTestBean", new Action() {
public Event execute(RequestContext context) throws Exception {
assertSessionBound();
EntityManager em = (EntityManager) context.getFlowScope().get("persistenceContext");
TestBean bean = (TestBean) em.getReference(TestBean.class, new Integer(0));
assertNotNull(bean);