@Test
public void testDeleteQueueItemIntegrity() {

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(d));
	//
	scheduledTaskService.deleteInternal(d);
	//
	assertNull(scheduledTaskService.get(d.getId()));
	assertNull(service.get(item.getId()));
}