StatefulTx stateful = (StatefulTx)getInitialContext().lookup("StatefulTx");
assertNotNull(stateful);
boolean arjunaTransacted = stateful.isArjunaTransactedRequired();
assertTrue(arjunaTransacted);
arjunaTransacted = stateful.isArjunaTransactedRequiresNew();
assertTrue(arjunaTransacted);
Entity entity = new Entity();
entity.setName("test-entity");
entity.setId(1234L);
arjunaTransacted = stateful.clear(entity);
assertTrue(arjunaTransacted);
arjunaTransacted = stateful.persist(entity);
assertTrue(arjunaTransacted);
stateful.clear(entity);