public virtual void testQueryByInvalidProcessDefinitionKey() { HistoricJobLogQuery query = historyService.createHistoricJobLogQuery().processDefinitionKey("invalid"); verifyQueryResults(query, 0); try { query.processDefinitionKey(null); fail(); } catch (Exception) { } }