### Question:
ConsentModelMapper { public Authorisations mapToAuthorisations(Xs2aPaymentCancellationAuthorisationSubResource idsContainer) { return Optional.ofNullable(idsContainer.getAuthorisationIds()) .map(this::buildAuthorisations) .orElseGet(Authorisations::new); }  CreateConsentReq mapToCreateConsentReq(Consents consent, TppRedirectUri tppRedirectUri,
                                                  TppNotificationData tppNotificationData, String tppBrandLoggingInformation,
                                                  String instanceId); ConsentStatusResponse200 mapToConsentStatusResponse200(ConsentStatusResponse consentStatusResponse); ConsentsResponse201 mapToConsentsResponse201(CreateConsentResponse createConsentResponse); ConsentInformationResponse200Json mapToConsentInformationResponse200Json(AisConsent aisConsent); List<AccountReference> mapToXs2aAccountReferences(List<de.adorsys.psd2.model.AccountReference> references); AccountReference mapToAccountReference(Object reference); UpdateConsentPsuDataReq mapToUpdatePsuData(PsuIdData psuData, String consentId, String authorizationId, Map body); Authorisations mapToAuthorisations(Xs2aPaymentCancellationAuthorisationSubResource idsContainer); Xs2aUpdatePisCommonPaymentPsuDataRequest mapToPisUpdatePsuData(PsuIdData psuData, String paymentId, String authorisationId, PaymentType paymentService, String paymentProduct, Map body); final AccountModelMapper accountModelMapper; }### Answer:
@Test void mapToCancellations() { List<String> authorisationIds = Arrays.asList("c0121ca2-ab3a-4564-b915-6e40e8b40f50", "743d0a45-7233-4fbf-9799-c657f327836c"); Authorisations authorisations = consentModelMapper.mapToAuthorisations(new Xs2aPaymentCancellationAuthorisationSubResource(authorisationIds)); assertNotNull(authorisations); AuthorisationsList authorisationsList = authorisations.getAuthorisationIds(); assertNotNull(authorisationsList); assertEquals(authorisationIds, new ArrayList<>(authorisationsList)); }