ProcessInstanceQuery query = runtimeService.createProcessInstanceQuery();
assertEquals(0, query.incidentMessage("invalid").count());
try {
query.incidentMessage(null);
fail();
} catch (ProcessEngineException e) {}
}
@Deployment(resources={"org/camunda/bpm/engine/test/api/runtime/failingProcessCreateOneIncident.bpmn20.xml"})