    @Test
    @RunWithCustomExecutor
    public void givenManifestWithUpdateAddUnitExtractSedaThenCheckEvDetData()
        throws Exception {

        VitamThreadUtils.getVitamSession().setTenantId(TENANT_ID);

        prepareResponseOKForAdminManagementClientFindIngestContracts(INGEST_CONTRACT_NO_CHECK);

        final InputStream sedaLocal = new FileInputStream(PropertiesUtils.findFile(SIP_ADD_UNIT));
        JsonNode parent = JsonHandler
            .getFromFile(PropertiesUtils.getResourceFile("extractSedaActionHandler/addLink/_Unit_PARENT.json"));

        when(metadataClient.selectUnits(any())).thenReturn(parent).thenReturn(parent);

        when(workspaceClient.getObject(any(), eq("SIP/manifest.xml")))
            .thenReturn(Response.status(Status.OK).entity(sedaLocal).build());
        handlerIO.addOutIOParameters(out);
        final ItemStatus response = handler.execute(params, handlerIO);

        // Check master evDetData
        String evDetDataString = (String) response.getEvDetailData();
        JsonNode evDetData = JsonHandler.getFromString(evDetDataString);
        assertNotNull(evDetData);
        String masterEvDetDataString =
            (String) response.getMasterData().get(LogbookParameterName.eventDetailData.name());
        JsonNode masterEvDetData = JsonHandler.getFromString(masterEvDetDataString);
        assertNotNull(masterEvDetData);

        // Check comment
        assertEquals("Commentaire français", evDetData.get("EvDetailReq").asText());
        assertEquals("Commentaire français", evDetData.get("EvDetailReq_fr").asText());
        assertEquals("English Comment", evDetData.get("EvDetailReq_en").asText());
        assertEquals("Deutsch Kommentare", evDetData.get("EvDetailReq_de").asText());

        // Check other fields
        assertEquals("ArchivalAgreement0", evDetData.get("ArchivalAgreement").asText());
        assertNotNull(response.getData("agIdExt"));
        JsonNode node = JsonHandler.getFromString(response.getData("agIdExt").toString());
        assertEquals("Identifier1", node.get("TransferringAgency").asText());
        assertEquals("2016-06-23T09:45:51.0", evDetData.get("EvDateTimeReq").asText());

        //check ManagementMetaData
        assertEquals("AcquisitionInformation0", masterEvDetData.get("AcquisitionInformation").asText());
        assertEquals("Public and Private Archive", masterEvDetData.get("LegalStatus").asText());
    }