@Test
public void datesFilter(){

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(d));
	IdmProcessedTaskItemDto item2 = getHelper().prepareProcessedItem(d);
	item2.setCreated(item.getCreated());
	item2 = service.saveInternal(item2);
	//
	IdmProcessedTaskItemDto item3 = service.saveInternal(getHelper().prepareProcessedItem(d));
	//
	IdmProcessedTaskItemFilter filter = new IdmProcessedTaskItemFilter();
	filter.setFrom(item.getCreated().truncatedTo(ChronoUnit.MILLIS));
	Page<IdmProcessedTaskItemDto> result = service.find(filter,null);
	assertTrue("#1", result.getContent().contains(item));
	assertTrue("#2", result.getContent().contains(item2));
	filter.setFrom(null);
	filter.setTill(item3.getCreated().truncatedTo(ChronoUnit.MILLIS).plus(1, ChronoUnit.MILLIS));
	result = service.find(filter,null);
	assertTrue("#4",result.getContent().contains(item3));
}