public virtual void testQueryByInvalidSubCaseInstanceId() { HistoricCaseInstanceQuery query = historyService.createHistoricCaseInstanceQuery(); query.subCaseInstanceId("invalid"); assertEquals(0, query.count()); assertEquals(0, query.list().size()); query.caseInstanceId(null); assertEquals(0, query.count()); assertEquals(0, query.list().size()); }