### Question:
CommonPaymentDataService { @Transactional public boolean updatePaymentCancellationInternalRequestId(PisCommonPaymentData paymentData, @NotNull String internalRequestId) { paymentData.setCancellationInternalRequestId(internalRequestId); PisCommonPaymentData saved = pisCommonPaymentDataRepository.save(paymentData); return saved.getPaymentId() != null; }  Optional<PisCommonPaymentData> getPisCommonPaymentData(String paymentId, @Nullable String instanceId); @Transactional boolean updateStatusInPaymentData(PisCommonPaymentData paymentData, TransactionStatus status); @Transactional boolean updateCancelTppRedirectURIs(PisCommonPaymentData paymentData, @NotNull TppRedirectUri tppRedirectUri); @Transactional boolean updatePaymentCancellationInternalRequestId(PisCommonPaymentData paymentData, @NotNull String internalRequestId);  }### Answer:
@Test void updatePaymentCancellationInternalRequestId_Success() { String paymentId = "YK1f8zkXTBIkVeJWOiHzAE"; OffsetDateTime creationTimestamp = OffsetDateTime.now(); PisCommonPaymentData paymentData = buildPisCommonPaymentData(paymentId, creationTimestamp); PisCommonPaymentData paymentDataWithCancellationInternalRequestId = buildPisCommonPaymentData(paymentId, creationTimestamp); paymentDataWithCancellationInternalRequestId.setCancellationInternalRequestId(INTERNAL_REQUEST_ID); when(pisCommonPaymentDataRepository.save(paymentDataWithCancellationInternalRequestId)).thenReturn(paymentDataWithCancellationInternalRequestId); boolean updatePaymentCancellationInternalRequestId = commonPaymentDataService.updatePaymentCancellationInternalRequestId(paymentData, INTERNAL_REQUEST_ID); assertTrue(updatePaymentCancellationInternalRequestId); }