### Question:
PaymentModelMapperPsd2 { public Object mapToGetPaymentResponse(CommonPayment commonPayment) { String rawData = convertResponseToRawData(commonPayment.getPaymentData()); return standardPaymentProductsResolver.isRawPaymentProduct(commonPayment.getPaymentProduct()) ? rawData : enrichPaymentWithAdditionalData(rawData, commonPayment); }  Object mapToGetPaymentResponse(CommonPayment commonPayment); PaymentInitiationStatusResponse200Json mapToStatusResponseJson(GetPaymentStatusResponse response); byte[] mapToStatusResponseRaw(GetPaymentStatusResponse response); PaymentInitationRequestResponse201 mapToPaymentInitiationResponse(PaymentInitiationResponse response); PaymentInitiationParameters mapToPaymentRequestParameters(String paymentProduct, String paymentService, byte[] tpPSignatureCertificate, String tpPRedirectURI,
                                                                     String tpPNokRedirectURI, boolean tppExplicitAuthorisationPreferred, PsuIdData psuData,
                                                                     TppNotificationData tppNotificationData, String tppBrandLoggingInformation, String instanceId); PisPaymentCancellationRequest mapToPaymentCancellationRequest(String paymentProduct, String paymentService, String paymentId,
                                                                         Boolean tppExplicitAuthorisationPreferred,
                                                                         String tpPRedirectURI, String tpPNokRedirectURI); PaymentInitiationCancelResponse202 mapToPaymentInitiationCancelResponse(CancelPaymentResponse cancelPaymentResponse);  }### Answer:
@Test void mapToGetPaymentResponse_standardPayment() { CommonPayment payment = new CommonPayment(); payment.setPaymentData(jsonReader.getBytesFromFile("json/service/mapper/common-payment.json")); payment.setTransactionStatus(TransactionStatus.RCVD); payment.setPaymentProduct(PAYMENT_PRODUCT); Map actual = (Map) mapper.mapToGetPaymentResponse(payment); assertEquals(7, actual.size()); assertEquals(PAYMENT_TYPE, actual.get("paymentType")); assertEquals("26bb59a3-2f63-4027-ad38-67d87e59611a", actual.get("aspspAccountId")); assertEquals(TransactionStatus.RCVD.name(), actual.get("transactionStatus")); assertEquals(ENCRYPTED_PAYMENT_ID, actual.get("paymentId")); assertEquals(false, actual.get("transactionFeeIndicator")); assertEquals(true, actual.get("multilevelScaRequired")); assertTrue(((Map) actual.get("aspspConsentDataProvider")).isEmpty()); }
@Test void mapToGetPaymentResponse_nonStandardPayment() { CommonPayment payment = new CommonPayment(); payment.setPaymentData(jsonReader.getBytesFromFile("json/service/mapper/common-payment.json")); payment.setTransactionStatus(TransactionStatus.RCVD); payment.setPaymentProduct(NON_STANDARD_PAYMENT_PRODUCT); String actual = (String) mapper.mapToGetPaymentResponse(payment); assertEquals(jsonReader.getStringFromFile("json/service/mapper/common-payment.json"), actual); }