### Question:
PaymentInternalGeneral { public SCAPaymentResponseTO initiatePaymentInternal(SpiPayment payment, byte[] initialAspspConsentData) { PaymentType paymentType = payment.getPaymentType(); PaymentTO paymentTO = ledgersSpiCommonPaymentTOMapper.mapToPaymentTO(paymentType, (SpiPaymentInfo) payment); return paymentService.initiatePaymentInternal(payment, initialAspspConsentData, PaymentTypeTO.valueOf(paymentType.toString()), paymentTO); }  SCAPaymentResponseTO initiatePaymentInternal(SpiPayment payment, byte[] initialAspspConsentData);  }### Answer:
@Test void initiatePaymentInternal() { SpiPaymentInfo spiPayment = new SpiPaymentInfo(PAYMENT_PRODUCT); spiPayment.setPaymentType(PaymentType.SINGLE); PaymentTO paymentTO = new PaymentTO(); when(ledgersSpiCommonPaymentTOMapper.mapToPaymentTO(PaymentType.SINGLE, spiPayment)).thenReturn(paymentTO); paymentInternalGeneral.initiatePaymentInternal(spiPayment, CONSENT_DATA); verify(ledgersSpiCommonPaymentTOMapper).mapToPaymentTO(PaymentType.SINGLE, spiPayment); verify(paymentService).initiatePaymentInternal(spiPayment, CONSENT_DATA, PaymentTypeTO.SINGLE, paymentTO); }