public void testQueryByInvalidCauseIncidentId() {
HistoricIncidentQuery query = historyService.createHistoricIncidentQuery();
assertEquals(0, query.causeIncidentId("invalid").list().size());
assertEquals(0, query.causeIncidentId("invalid").count());
try {
query.causeIncidentId(null);
fail("It was possible to set a null value as causeIncidentId.");
} catch (ProcessEngineException e) { }