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