### Question:
RedirectLinkBuilder { public String buildConfirmationLink(String consentId, String redirectId, ConsentType consentType) { String authorisationUrl = getAuthorisationUrlByConsentType(consentType); return authorisationUrl .replace(CONSENT_ID, consentId) .replace(AUTHORISATION_ID, redirectId); }  String buildConsentScaRedirectLink(String encryptedConsentId, String redirectId, String internalRequestId,
                                              String instanceId, ConsentType consentType); String buildConsentScaOauthRedirectLink(String encryptedConsentId, String redirectId, String internalRequestId); String buildPaymentScaRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId,
                                              String instanceId); String buildPaymentScaOauthRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId); String buildPaymentCancellationScaRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId,
                                                          String instanceId); String buildPaymentCancellationScaOauthRedirectLink(String encryptedPaymentId, String redirectId, String internalRequestId); String buildPisConfirmationLink(String paymentService, String paymentProduct, String encryptedPaymentId, String redirectId); String buildPisCancellationConfirmationLink(String paymentService, String paymentProduct, String encryptedPaymentId, String redirectId); String buildConfirmationLink(String consentId, String redirectId, ConsentType consentType);  }### Answer:
@Test public void buildAisConfirmationLink() { String confirmationLink = redirectLinkBuilder.buildConfirmationLink("consentID", "redirectID", ConsentType.AIS); assertEquals("/v1/consents/consentID/authorisations/redirectID", confirmationLink); }
@Test public void buildPiisConfirmationLink() { String confirmationLink = redirectLinkBuilder.buildConfirmationLink("consentID", "redirectID", ConsentType.PIIS_TPP); assertEquals("/v2/consents/confirmation-of-funds/consentID/authorisations/redirectID", confirmationLink); }