@Test
public void getOperationState(){

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	//
	IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(d));
	IdmProcessedTaskItemDto item2 = service.saveInternal(getHelper().prepareProcessedItem(d));
	IdmProcessedTaskItemDto item3 = service.saveInternal(getHelper().prepareProcessedItem(d,OperationState.CANCELED));
	//
	IdmProcessedTaskItemFilter filter = new IdmProcessedTaskItemFilter();
	filter.setOperationState(item.getOperationResult().getState());
	Page<IdmProcessedTaskItemDto> result = service.find(filter,null);
	assertTrue(result.getContent().contains(item));
	assertTrue(result.getContent().contains(item2));
	assertFalse(result.getContent().contains(item3));
}