### Question:
PaymentMapper { public PeriodicPayment mapToPeriodicPayment(Object body) { return mapToXs2aPeriodicPayment(convertPayment(body, PeriodicPaymentInitiationJson.class)); } @Autowired  PaymentMapper(Xs2aObjectMapper xs2aObjectMapper, PurposeCodeMapper purposeCodeMapper); SinglePayment mapToSinglePayment(Object body); PeriodicPayment mapToPeriodicPayment(Object body); BulkPayment mapToBulkPayment(Object body);  }### Answer:
@Test void mapToPeriodicPayment() { PeriodicPaymentInitiationJson paymentInitiationJson = jsonReader.getObjectFromFile("json/web/validator/body/payment/mapper/periodic-payment-initiation.json", PeriodicPaymentInitiationJson.class); PeriodicPayment expectedPayment = jsonReader.getObjectFromFile("json/web/validator/body/payment/mapper/xs2a-periodic-payment.json", PeriodicPayment.class); PeriodicPayment actualPayment = paymentMapper.mapToPeriodicPayment(paymentInitiationJson); assertEquals(expectedPayment, actualPayment); }