### Question:
CorePaymentsConvertService { public byte[] buildPaymentData(List<PisPayment> pisPayments, PaymentType paymentType) { switch (paymentType) { case SINGLE: return writeValueAsBytes(cmsCorePaymentMapper.mapToPaymentInitiationJson(pisPayments)); case BULK: return writeValueAsBytes(cmsCorePaymentMapper.mapToBulkPaymentInitiationJson(pisPayments)); case PERIODIC: return writeValueAsBytes(cmsCorePaymentMapper.mapToPeriodicPaymentInitiationJson(pisPayments)); default: return new byte[0]; } }  byte[] buildPaymentData(List<PisPayment> pisPayments, PaymentType paymentType); CmsPayment expandCommonPaymentWithCorePayment(CmsCommonPayment cmsCommonPayment);  }### Answer:
@Test void buildPaymentData_singlePayment_emptyPayments() { byte[] actual = corePaymentsConvertService.buildPaymentData(Collections.emptyList(), PaymentType.SINGLE); assertArrayEquals(new byte[0], actual); }
@Test void buildPaymentData_periodicPayment_emptyPayments() { byte[] actual = corePaymentsConvertService.buildPaymentData(Collections.emptyList(), PaymentType.PERIODIC); assertArrayEquals(new byte[0], actual); }
@Test void buildPaymentData_bulkPayment_emptyPayments() { byte[] actual = corePaymentsConvertService.buildPaymentData(Collections.emptyList(), PaymentType.BULK); assertArrayEquals(new byte[0], actual); }