### Question:
LedgersSpiPaymentMapper { public SpiPeriodicPayment mapToSpiPeriodicPayment(PaymentTO paymentTO) { if (paymentTO == null) { return null; } SpiPeriodicPayment spiPeriodicPayment = new SpiPeriodicPayment(paymentTO.getPaymentProduct()); fillCommonPart(paymentTO, spiPeriodicPayment); spiPeriodicPayment.setStartDate(paymentTO.getStartDate()); spiPeriodicPayment.setEndDate(paymentTO.getEndDate()); spiPeriodicPayment.setFrequency(FrequencyCode.valueOf(paymentTO.getFrequency().name())); spiPeriodicPayment.setDayOfExecution(PisDayOfExecution.fromValue(String.valueOf(paymentTO.getDayOfExecution()))); spiPeriodicPayment.setExecutionRule(PisExecutionRule.getByValue(paymentTO.getExecutionRule()).orElse(null)); return spiPeriodicPayment; }  SpiSinglePayment toSpiSinglePayment(PaymentTO paymentTO); SpiPeriodicPayment mapToSpiPeriodicPayment(PaymentTO paymentTO); SpiBulkPayment mapToSpiBulkPayment(PaymentTO paymentTO); String mapToRemittanceString(RemittanceInformationStructuredTO remittanceInformationStructuredTO);  }### Answer:
@Test void mapToSpiPeriodicPayment() { PaymentTO paymentTO = jsonReader.getObjectFromFile("json/mappers/payment-to-spi-periodic-payment.json", PaymentTO.class); SpiPeriodicPayment actual = ledgersSpiPaymentMapper.mapToSpiPeriodicPayment(paymentTO); SpiPeriodicPayment expected = jsonReader.getObjectFromFile("json/mappers/spi-periodic-payment.json", SpiPeriodicPaymentTestable.class); assertEquals(expected, actual); }