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