### Question:
PiisConsentModelMapper { public ConsentsConfirmationOfFundsResponse mapToConsentsConfirmationOfFundsResponse(Xs2aConfirmationOfFundsResponse xs2aConfirmationOfFundsResponse) { return Optional.ofNullable(xs2aConfirmationOfFundsResponse).map( response -> { ConsentsConfirmationOfFundsResponse consentsConfirmationOfFundsResponse = new ConsentsConfirmationOfFundsResponse(); consentsConfirmationOfFundsResponse.setConsentId(response.getConsentId()); consentsConfirmationOfFundsResponse.setConsentStatus(ConsentStatus.fromValue(response.getConsentStatus())); consentsConfirmationOfFundsResponse.setLinks(hrefLinkMapper.mapToLinksMap(response.getLinks())); consentsConfirmationOfFundsResponse.setPsuMessage(response.getPsuMessage()); return consentsConfirmationOfFundsResponse; } ).orElse(null); }  CreatePiisConsentRequest toCreatePiisConsentRequest(ConsentsConfirmationOfFunds consentsConfirmationOfFunds); ConsentsConfirmationOfFundsResponse mapToConsentsConfirmationOfFundsResponse(Xs2aConfirmationOfFundsResponse xs2aConfirmationOfFundsResponse); ConsentConfirmationOfFundsContentResponse mapToConsentConfirmationOfFundsContentResponse(PiisConsent piisConsent); ConsentConfirmationOfFundsStatusResponse mapToConsentConfirmationOfFundsStatusResponse(ConsentStatusResponse consentStatusResponse);  }### Answer:
@Test void mapToConsentsConfirmationOfFundsResponse() { when(hrefLinkMapper.mapToLinksMap(any(Links.class))).thenReturn(buildLinks()); ConsentsConfirmationOfFundsResponse actual = piisConsentModelMapper.mapToConsentsConfirmationOfFundsResponse(xs2aConfirmationOfFundsResponse); checkCommonFields(actual); }