@Test
public void testDeleteLogItemIntegrity() {

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	IdmLongRunningTaskDto lrt = this.createLongRunningTask(d);
	IdmProcessedTaskItemDto item = service.saveInternal(getHelper().prepareProcessedItem(lrt));
	//
	longrunningService.deleteInternal(lrt);
	//
	assertNull(longrunningService.get(lrt.getId()));
	assertNull(service.get(item.getId()));
	assertNotNull(scheduledTaskService.get(d.getId()));
}