### Question:
Xs2aPiisConsentMapper { @Mapping(target = "consentTppInformation", source = "tppInformation") public abstract PiisConsent mapToPiisConsent(CmsConsent cmsConsent);  @Mapping(target = "consentTppInformation", source = "tppInformation") abstract PiisConsent mapToPiisConsent(CmsConsent cmsConsent); UpdateConsentPsuDataReq mapToUpdateConsentPsuDataReq(UpdateAuthorisationRequest request,
                                                                AuthorisationProcessorResponse response); CmsConsent mapToCmsConsent(CreatePiisConsentRequest request, PsuIdData psuData, TppInfo tppInfo);  }### Answer:
@Test void mapToPiisConsent() { CmsConsent cmsConsent = jsonReader.getObjectFromFile("json/service/mapper/consent/piis/cms-consent.json", CmsConsent.class); byte[] piisConsentData = jsonReader.getBytesFromFile("json/service/mapper/consent/piis/piis-consent-data.json"); cmsConsent.setConsentData(piisConsentData); PiisConsent expectedXs2aConsent = jsonReader.getObjectFromFile("json/service/mapper/consent/piis/piis-consent.json", PiisConsent.class); PiisConsent result = xs2aPiisConsentMapper.mapToPiisConsent(cmsConsent); assertEquals(expectedXs2aConsent, result); }