### Question:
Xs2aPisCommonPaymentMapper { public Xs2aPisCommonPayment mapToXs2aPisCommonPayment(CreatePisCommonPaymentResponse response, PsuIdData psuData) { return new Xs2aPisCommonPayment(response.getPaymentId(), psuData); }  Optional<Xs2aCreatePisAuthorisationResponse> mapToXsa2CreatePisAuthorisationResponse(CreateAuthorisationResponse response, PaymentType paymentType); Optional<Xs2aCreatePisCancellationAuthorisationResponse> mapToXs2aCreatePisCancellationAuthorisationResponse(CreateAuthorisationResponse response, PaymentType paymentType); Xs2aPisCommonPayment mapToXs2aPisCommonPayment(CreatePisCommonPaymentResponse response, PsuIdData psuData); UpdateAuthorisationRequest mapToUpdateAuthorisationRequest(AuthorisationProcessorResponse response, AuthorisationType authorisationType); SpiScaConfirmation buildSpiScaConfirmation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, String consentId, String paymentId, PsuIdData psuData);  }### Answer:
@Test void mapToXs2aPisCommonPayment() { Xs2aPisCommonPayment expected = jsonReader.getObjectFromFile("json/service/mapper/spi_xs2a_mappers/xs2a-pis-common-payment.json", Xs2aPisCommonPayment.class); CreatePisCommonPaymentResponse input = jsonReader.getObjectFromFile("json/service/mapper/spi_xs2a_mappers/create-pis-common-payment-response.json", CreatePisCommonPaymentResponse.class); Xs2aPisCommonPayment actual = xs2aPisCommonPaymentMapper.mapToXs2aPisCommonPayment(input, psuData); assertEquals(expected, actual); }