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