public void testBoundaryErrorEvent() {
ProcessInstance pi = runtimeService.startProcessInstanceByKey("process");
HistoricActivityInstanceQuery query = historyService.createHistoricActivityInstanceQuery();
query.activityId("error");
assertEquals(1, query.count());
assertNotNull(query.singleResult().getEndTime());
assertEquals("boundaryError", query.singleResult().getActivityType());
Task task = taskService.createTaskQuery().singleResult();