@Test
public void testCreateItem() {

	IdmScheduledTaskDto d = getHelper().createSchedulableTask();
	IdmLongRunningTaskDto lrt = this.createLongRunningTask(d);
	IdmProcessedTaskItemDto item = getHelper().prepareProcessedItem(lrt);
	//
	IdmProcessedTaskItemDto retrieved = service.get(service.saveInternal(item).getId());
	//
	assertNotNull(retrieved);
	assertEquals(item.getReferencedDtoType(), retrieved.getReferencedDtoType());
	assertEquals(item.getReferencedEntityId(), retrieved.getReferencedEntityId());
	assertEquals(item.getLongRunningTask(), retrieved.getLongRunningTask());
}