@Test
public void testReceiveARActe() throws IOException, JAXBException {

    given(acteRepository.findByMiatId(anyString()))
            .willReturn(Optional.of(acte()));
    Pair<ARActe, Attachment> parsedData =
            parseClassPathResource("/data/006-210600235-20180522-684-AI-1-2_5279.xml", ARActe.class);
    retourPrefectureService.receiveARActe(parsedData.getLeft(), parsedData.getRight());
    verify(acteRepository).findByMiatId("006-210600235-20180522-684-AI");
    verify(retourPrefectureService).publishActeHistory(eq("uuid"), eq(StatusType.ACK_RECEIVED),
            eq(parsedData.getRight()), eq(Optional.empty()), eq(Optional.empty()));
}