caseService
.withCaseDefinitionByKey(CASE_DEFINITION_KEY)
.setVariable("aDateValue", now)
.create();
CaseExecutionQuery query = caseService.createCaseExecutionQuery();
Date before = new Date(now.getTime() - 100000);
query.variableValueGreaterThanOrEqual("aDateValue", before);
verifyQueryResults(query, 1);
query = caseService.createCaseExecutionQuery();
query.variableValueGreaterThanOrEqual("aDateValue", now);
verifyQueryResults(query, 1);
}