30. JbpmTestCase public class FindExecutionTest extends JbpmTestCase { public void testFindExecutionById() { deployJpdlXmlString( "<process name='p'>" + " <start>" + " <transition to='a' />" + " </start>" + " <state name='a' />" + "</process>" ); Execution execution = executionService .startProcessInstanceByKey( "p" ); // take the id and see if the execution service can still find it back execution = executionService .findExecution(execution.getId()); assertNotNull(execution); assertEquals( "a" , execution.getActivityName()); }