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

    given(acteRepository.findByMiatId(anyString()))
            .willReturn(Optional.of(acte()));
    Pair<ARAnnulation, Attachment> parsedData =
            parseClassPathResource("data/044-214400152-20181106-TEST_DGCL_4-DE-6-2_10.xml", ARAnnulation.class);
    retourPrefectureService.receiveARAnnulation(parsedData.getLeft(), parsedData.getRight());
    verify(acteRepository).findByMiatId("044-214400152-20181106-TEST_DGCL_4-DE");
    verify(retourPrefectureService).publishActeHistory(eq("uuid"), eq(StatusType.CANCELLED),
            eq(parsedData.getRight()), eq(Optional.empty()), eq(Optional.empty()));
}