### Question:
LedgersSpiPaymentMapper { public SpiSinglePayment toSpiSinglePayment(PaymentTO paymentTO) { if (paymentTO == null) { return null; } SpiSinglePayment spiSinglePayment = new SpiSinglePayment(paymentTO.getPaymentProduct()); fillCommonPart(paymentTO, spiSinglePayment); return spiSinglePayment; }  SpiSinglePayment toSpiSinglePayment(PaymentTO paymentTO); SpiPeriodicPayment mapToSpiPeriodicPayment(PaymentTO paymentTO); SpiBulkPayment mapToSpiBulkPayment(PaymentTO paymentTO); String mapToRemittanceString(RemittanceInformationStructuredTO remittanceInformationStructuredTO);  }### Answer:
@Test void toSpiSinglePayment() { PaymentTO paymentTO = jsonReader.getObjectFromFile("json/mappers/payment-to-spi-single-payment.json", PaymentTO.class); SpiSinglePayment actual = ledgersSpiPaymentMapper.toSpiSinglePayment(paymentTO); SpiSinglePayment expected = jsonReader.getObjectFromFile("json/mappers/spi-single-payment.json", SpiSinglePaymentTestable.class); assertEquals(expected, actual); }