### Question:
CmsCommonPaymentMapperSupportImpl implements CmsCommonPaymentMapper { @Override public CmsPayment mapToCmsBulkPayment(CmsCommonPayment cmsCommonPayment) { BulkPaymentInitiationJson payment = convert(cmsCommonPayment.getPaymentData(), BulkPaymentInitiationJson.class); if (payment == null) { return null; } return mapToCmsBulkPayment(payment, cmsCommonPayment); }  @Override CmsPayment mapToCmsSinglePayment(CmsCommonPayment cmsCommonPayment); @Override CmsPayment mapToCmsBulkPayment(CmsCommonPayment cmsCommonPayment); @Override CmsPayment mapToCmsPeriodicPayment(CmsCommonPayment cmsCommonPayment);  }### Answer:
@Test void mapToCmsBulkPayment() throws JsonProcessingException { BulkPaymentInitiationJson paymentInitiationJson = jsonReader.getObjectFromFile("json/bulk-payment-initiation-resp.json", BulkPaymentInitiationJson.class); cmsCommonPayment.setPaymentData(xs2aObjectMapper.writeValueAsBytes(paymentInitiationJson)); CmsPayment actual = mapper.mapToCmsBulkPayment(cmsCommonPayment); CmsBulkPayment expected = getCmsBulkPayment(paymentInitiationJson, cmsCommonPayment); assertEquals(expected, actual); }
@Test void mapToCmsBulkPayment_payDataIsNull() { cmsCommonPayment.setPaymentData(null); assertNull(mapper.mapToCmsBulkPayment(cmsCommonPayment)); }