### Question:
Xs2aToSpiPaymentMapper { public SpiPayment mapToSpiPayment(PisCommonPaymentResponse commonPaymentResponse) { SpiPaymentInfo spiPaymentInfo = new SpiPaymentInfo(commonPaymentResponse.getPaymentProduct()); spiPaymentInfo.setPaymentId(commonPaymentResponse.getExternalId()); spiPaymentInfo.setPaymentType(commonPaymentResponse.getPaymentType()); spiPaymentInfo.setStatus(commonPaymentResponse.getTransactionStatus()); spiPaymentInfo.setPaymentData(commonPaymentResponse.getPaymentData()); spiPaymentInfo.setPsuDataList(xs2aToSpiPsuDataMapper.mapToSpiPsuDataList(commonPaymentResponse.getPsuData())); spiPaymentInfo.setStatusChangeTimestamp(commonPaymentResponse.getStatusChangeTimestamp()); spiPaymentInfo.setCreationTimestamp(commonPaymentResponse.getCreationTimestamp()); spiPaymentInfo.setInstanceId(commonPaymentResponse.getInstanceId()); return spiPaymentInfo; }  SpiPayment mapToSpiPayment(PisCommonPaymentResponse commonPaymentResponse);  }### Answer:
@Test void mapToSpiPayment_emptyPayments() { PisCommonPaymentResponse pisCommonPaymentResponse = jsonReader.getObjectFromFile("json/service/mapper/pis-common-payment-response.json", PisCommonPaymentResponse.class); SpiPayment actual = mapper.mapToSpiPayment(pisCommonPaymentResponse); SpiPaymentInfo expected = jsonReader.getObjectFromFile("json/service/mapper/spi-single-payment2.json", SpiPaymentInfo.class); assertEquals(expected, actual); }