### Question:
CorePaymentsConvertService { public CmsPayment expandCommonPaymentWithCorePayment(CmsCommonPayment cmsCommonPayment) { switch (cmsCommonPayment.getPaymentType()) { case SINGLE: return cmsCommonPaymentMapper.mapToCmsSinglePayment(cmsCommonPayment); case BULK: return cmsCommonPaymentMapper.mapToCmsBulkPayment(cmsCommonPayment); case PERIODIC: return cmsCommonPaymentMapper.mapToCmsPeriodicPayment(cmsCommonPayment); default: return cmsCommonPayment; } }  byte[] buildPaymentData(List<PisPayment> pisPayments, PaymentType paymentType); CmsPayment expandCommonPaymentWithCorePayment(CmsCommonPayment cmsCommonPayment);  }### Answer:
@Test void expandCommonPaymentWithCorePayment_singlePayment() { corePaymentsConvertService = new CorePaymentsConvertService(null, null, cmsCommonPaymentMapper); cmsCommonPayment.setPaymentType(PaymentType.SINGLE); corePaymentsConvertService.expandCommonPaymentWithCorePayment(cmsCommonPayment); verify(cmsCommonPaymentMapper, times(1)).mapToCmsSinglePayment(cmsCommonPayment); }
@Test void expandCommonPaymentWithCorePayment_periodicPayment() { cmsCommonPayment.setPaymentType(PaymentType.PERIODIC); corePaymentsConvertService.expandCommonPaymentWithCorePayment(cmsCommonPayment); verify(cmsCommonPaymentMapper, times(1)).mapToCmsPeriodicPayment(cmsCommonPayment); }
@Test void expandCommonPaymentWithCorePayment_bulkPayment() { cmsCommonPayment.setPaymentType(PaymentType.BULK); corePaymentsConvertService.expandCommonPaymentWithCorePayment(cmsCommonPayment); verify(cmsCommonPaymentMapper, times(1)).mapToCmsBulkPayment(cmsCommonPayment); }