### Question:
PaymentServiceResolverSupport implements PaymentServiceResolver { @Override public CancelPaymentService getCancelPaymentService(PisPaymentCancellationRequest paymentCancellationRequest) { if (standardPaymentProductsResolver.isRawPaymentProduct(paymentCancellationRequest.getPaymentProduct())) { return cancelCommonPaymentService; } return cancelCertainPaymentService; }  @Override CreatePaymentService getCreatePaymentService(PaymentInitiationParameters paymentInitiationParameters); @Override ReadPaymentService getReadPaymentService(CommonPaymentData commonPaymentData); @Override ReadPaymentStatusService getReadPaymentStatusService(PisCommonPaymentResponse pisCommonPaymentResponse); @Override CancelPaymentService getCancelPaymentService(PisPaymentCancellationRequest paymentCancellationRequest);  }### Answer:
@Test void getCancelPaymentService_raw() { when(standardPaymentProductsResolver.isRawPaymentProduct(RAW_PAYMENT_PRODUCT)).thenReturn(true); PisPaymentCancellationRequest pisPaymentCancellationRequest = new PisPaymentCancellationRequest(PaymentType.SINGLE, RAW_PAYMENT_PRODUCT, null, null, null); CancelPaymentService cancelPaymentService = paymentServiceResolverSupport.getCancelPaymentService(pisPaymentCancellationRequest); assertEquals(cancelCommonPaymentService, cancelPaymentService); }
@Test void getCancelPaymentService_standard() { PisPaymentCancellationRequest pisPaymentCancellationRequest = new PisPaymentCancellationRequest(PaymentType.SINGLE, STANDARD_PAYMENT_PRODUCT, null, null, null); CancelPaymentService cancelPaymentService = paymentServiceResolverSupport.getCancelPaymentService(pisPaymentCancellationRequest); assertEquals(cancelCertainPaymentService, cancelPaymentService); }