### Question:
LedgersSpiPaymentMapper { public SpiBulkPayment mapToSpiBulkPayment(PaymentTO paymentTO) { if (paymentTO == null) { return null; } SpiBulkPayment spiBulkPayment = new SpiBulkPayment(); spiBulkPayment.setPaymentId(paymentTO.getPaymentId()); spiBulkPayment.setBatchBookingPreferred(paymentTO.getBatchBookingPreferred()); spiBulkPayment.setDebtorAccount(accountMapper.toSpiAccountReference(paymentTO.getDebtorAccount())); spiBulkPayment.setRequestedExecutionDate(paymentTO.getRequestedExecutionDate()); spiBulkPayment.setRequestedExecutionTime(toDateTime(paymentTO.getRequestedExecutionDate(), paymentTO.getRequestedExecutionTime())); spiBulkPayment.setPaymentStatus(TransactionStatus.valueOf(paymentTO.getTransactionStatus().name())); spiBulkPayment.setPayments(toSpiSinglePaymentsList(paymentTO)); spiBulkPayment.setPaymentProduct(paymentTO.getPaymentProduct()); return spiBulkPayment; }  SpiSinglePayment toSpiSinglePayment(PaymentTO paymentTO); SpiPeriodicPayment mapToSpiPeriodicPayment(PaymentTO paymentTO); SpiBulkPayment mapToSpiBulkPayment(PaymentTO paymentTO); String mapToRemittanceString(RemittanceInformationStructuredTO remittanceInformationStructuredTO);  }### Answer:
@Test void mapToSpiBulkPayment() { PaymentTO paymentTO = jsonReader.getObjectFromFile("json/mappers/payment-to-spi-bulk-payment.json", PaymentTO.class); SpiBulkPayment actual = ledgersSpiPaymentMapper.mapToSpiBulkPayment(paymentTO); SpiBulkPayment expected = buildSpiBulkPayment(); assertEquals(expected, actual); }