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