public void testJbpmRuntimeManagerWithPersistence() {
Server server = startH2Server();
refresh();
EntityManagerFactory emf = (EntityManagerFactory) applicationContext.getBean("myEmf");
PlatformTransactionManager txManager = (PlatformTransactionManager) applicationContext.getBean("txManager");
RuntimeEnvironment environment = RuntimeEnvironmentBuilder.Factory.get().newDefaultBuilder()
.entityManagerFactory(emf)
.addEnvironmentEntry(EnvironmentName.TRANSACTION_MANAGER, txManager)
.addAsset(
KieServices.Factory.get().getResources().newClassPathResource(
"Evaluation.bpmn",getClass().getClassLoader()), ResourceType.BPMN2)