The following code throws an java.lang.ExceptionInInitializerError exception on the first line of code within the test method. Any suggestions on how to resolve this issue or direction is appreciated. I verified that the class activitiRule instance is not null. I also tested that the value returned from the getRuntimeService method doesn't result in null. The problem appears to be when it calls the startProcessInstanceByKey method, the last line of the stack trace is: "at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.<init>(DefaultSingletonBeanRegistry.java:86)".
public class MyUnitTest
{
@Rule
public ActivitiRule activitiRule = new ActivitiRule();
@Test
@Deployment( resources = {"VacationRequest.bpmn20.xml"} )
public void test()
{
ProcessInstance processInstance = activitiRule.getRuntimeService().startProcessInstanceByKey("vacationRequest");
assertNotNull(processInstance);
Task task = activitiRule.getTaskService().createTaskQuery().singleResult();
assertEquals( "Activiti is awesome", task.getName() );
}
}