@Test
public void getLongRunningTaskIdFilter(){

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	IdmLongRunningTaskDto lrt = this.createLongRunningTask(d);
	IdmLongRunningTaskDto lrt2 = this.createLongRunningTask(d);
	//
	IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(lrt));
	IdmProcessedTaskItemDto item2 = service.saveInternal(getHelper().prepareProcessedItem(lrt));
	IdmProcessedTaskItemDto item3 = service.saveInternal(getHelper().prepareProcessedItem(lrt2));
	//
	IdmProcessedTaskItemFilter filter = new IdmProcessedTaskItemFilter();
	filter.setLongRunningTaskId(lrt.getId());
	Page<IdmProcessedTaskItemDto> result = service.find(filter,null);
	assertEquals("Wrong number of items!",2,result.getTotalElements());
	assertTrue(result.getContent().contains(item));
	assertTrue(result.getContent().contains(item2));
	assertFalse(result.getContent().contains(item3));
}