### Question:
FundsConfirmationModelMapper { public FundsConfirmationRequest mapToFundsConfirmationRequest(ConfirmationOfFunds confirmationOfFunds, String consentId) { return Optional.ofNullable(confirmationOfFunds) .map(conf -> { FundsConfirmationRequest fundsConfirmationRequest = new FundsConfirmationRequest(); fundsConfirmationRequest.setCardNumber(conf.getCardNumber()); fundsConfirmationRequest.setPayee(conf.getPayee()); fundsConfirmationRequest.setPsuAccount(mapToAccountReferenceInner(conf.getAccount())); fundsConfirmationRequest.setInstructedAmount(amountModelMapper.mapToXs2aAmount(conf.getInstructedAmount())); fundsConfirmationRequest.setConsentId(consentId); return fundsConfirmationRequest; }) .orElse(null); }  FundsConfirmationRequest mapToFundsConfirmationRequest(ConfirmationOfFunds confirmationOfFunds, String consentId); InlineResponse2003 mapToInlineResponse2003(FundsConfirmationResponse fundsConfirmationResponse);  }### Answer:
@Test void mapToFundsConfirmationRequest() { ConfirmationOfFunds confirmationOfFunds = jsonReader.getObjectFromFile("json/service/mapper/funds-confirmation-model-mapper/confirmation-of-funds.json", ConfirmationOfFunds.class); FundsConfirmationRequest expected = jsonReader.getObjectFromFile("json/service/mapper/funds-confirmation-model-mapper/funds-confirmation-request.json", FundsConfirmationRequest.class); when(xs2aObjectMapper.convertValue(any(Object.class), eq(AccountReference.class))) .thenReturn(expected.getPsuAccount()); when(amountModelMapper.mapToXs2aAmount(any(Amount.class))) .thenReturn(expected.getInstructedAmount()); FundsConfirmationRequest actual = fundsConfirmationModelMapper.mapToFundsConfirmationRequest(confirmationOfFunds, CONSENT_ID); assertEquals(expected, actual); }