@Test
public void evaluateShouldFilterPatientsWithOnSetDateOnOrBefore() throws Exception {

	Concept concept = Context.getConceptService().getConcept(409);
	cd.setConditionCoded(concept);
	cd.setOnsetDateOnOrBefore(DateUtil.getDateTime(2014, 03, 12));
	Cohort cohort = Context.getService(CohortDefinitionService.class).evaluate(cd, null);
	Assert.assertTrue(cohort.contains(3));
	Assert.assertTrue(cohort.contains(4));
	Assert.assertEquals(2, cohort.size());
}