### Question:
Xs2aUpdatePaymentAfterSpiService { public boolean updatePaymentCancellationTppRedirectUri(@NotNull String paymentId, @NotNull TppRedirectUri tppRedirectUri) { CmsResponse<Boolean> response = updatePaymentStatusAfterSpiService.updatePaymentCancellationTppRedirectUri(paymentId, tppRedirectUri); return response.isSuccessful() && response.getPayload(); }  boolean updatePaymentStatus(@NotNull String paymentId, @NotNull TransactionStatus status); boolean updatePaymentCancellationTppRedirectUri(@NotNull String paymentId, @NotNull TppRedirectUri tppRedirectUri); boolean updatePaymentCancellationInternalRequestId(@NotNull String paymentId, @NotNull String internalRequestId);  }### Answer:
@Test void updatePaymentCancellationTppRedirectUri_success() { TppRedirectUri tppRedirectUri = new TppRedirectUri("ok.url", "nok.url"); when(updatePaymentStatusAfterSpiService.updatePaymentCancellationTppRedirectUri(PAYMENT_ID, tppRedirectUri)) .thenReturn(CmsResponse.<Boolean>builder().payload(true).build()); boolean actualResponse = xs2AUpdatePaymentAfterSpiService.updatePaymentCancellationTppRedirectUri(PAYMENT_ID, tppRedirectUri); assertThat(actualResponse).isTrue(); }
@Test void updatePaymentCancellationTppRedirectUri_failed() { TppRedirectUri tppRedirectUri = new TppRedirectUri("ok.url", "nok.url"); when(updatePaymentStatusAfterSpiService.updatePaymentCancellationTppRedirectUri(PAYMENT_ID, tppRedirectUri)) .thenReturn(CmsResponse.<Boolean>builder().payload(false).build()); boolean actualResponse = xs2AUpdatePaymentAfterSpiService.updatePaymentCancellationTppRedirectUri(PAYMENT_ID, tppRedirectUri); assertThat(actualResponse).isFalse(); }