ProcessDefinitionQuery query = repositoryService.createProcessDefinitionQuery();
assertEquals(0, query.incidentMessageLike("invalid").count());
try {
query.incidentMessageLike(null);
fail();
} catch (ProcessEngineException e) {}
}
@Deployment(resources={"org/camunda/bpm/engine/test/api/runtime/failingSubProcessCreateOneIncident.bpmn20.xml"})