### Question:
UpdatePaymentAfterSpiServiceRemote implements UpdatePaymentAfterSpiServiceEncrypted { @Override public CmsResponse<Boolean> updatePaymentStatus(@NotNull String encryptedPaymentId, @NotNull TransactionStatus status) { try { consentRestTemplate.exchange(pisPaymentRemoteUrls.updatePaymentStatus(), HttpMethod.PUT, null, Void.class, encryptedPaymentId, status.name()); return CmsResponse.<Boolean>builder() .payload(true) .build(); } catch (CmsRestException e) { log.error(PAYMENT_NOT_FOUND_MESSAGE, encryptedPaymentId); } return CmsResponse.<Boolean>builder() .payload(false) .build(); }  @Override CmsResponse<Boolean> updatePaymentStatus(@NotNull String encryptedPaymentId, @NotNull TransactionStatus status); @Override CmsResponse<Boolean> updatePaymentCancellationTppRedirectUri(@NotNull String encryptedPaymentId, @NotNull TppRedirectUri tppRedirectUri); @Override CmsResponse<Boolean> updatePaymentCancellationInternalRequestId(@NotNull String encryptedPaymentId, @NotNull String internalRequestId); static final String PAYMENT_NOT_FOUND_MESSAGE; }### Answer:
@Test void updatePaymentStatus() { when(pisPaymentRemoteUrls.updatePaymentStatus()).thenReturn(URL); when(consentRestTemplate.exchange(eq(URL), eq(HttpMethod.PUT), isNull(), eq(Void.class), eq(ENCRYPTED_PAYMENT_ID), eq(TransactionStatus.ACSP.name()))) .thenReturn(new ResponseEntity<>(HttpStatus.OK)); assertTrue(updatePaymentAfterSpiServiceRemote.updatePaymentStatus(ENCRYPTED_PAYMENT_ID, TransactionStatus.ACSP).getPayload()); }