### Question:
PaymentServiceResolverSupport implements PaymentServiceResolver { @Override public ReadPaymentService getReadPaymentService(CommonPaymentData commonPaymentData) { if (standardPaymentProductsResolver.isRawPaymentProduct(commonPaymentData.getPaymentProduct())) { return readCommonPaymentService; } return readPaymentFactory.getService(commonPaymentData.getPaymentType().getValue()); }  @Override CreatePaymentService getCreatePaymentService(PaymentInitiationParameters paymentInitiationParameters); @Override ReadPaymentService getReadPaymentService(CommonPaymentData commonPaymentData); @Override ReadPaymentStatusService getReadPaymentStatusService(PisCommonPaymentResponse pisCommonPaymentResponse); @Override CancelPaymentService getCancelPaymentService(PisPaymentCancellationRequest paymentCancellationRequest);  }### Answer:
@Test void getReadPaymentService_raw() { when(standardPaymentProductsResolver.isRawPaymentProduct(RAW_PAYMENT_PRODUCT)).thenReturn(true); PisCommonPaymentResponse pisCommonPaymentResponse = new PisCommonPaymentResponse(); pisCommonPaymentResponse.setPaymentProduct(RAW_PAYMENT_PRODUCT); ReadPaymentService readPaymentService = paymentServiceResolverSupport.getReadPaymentService(pisCommonPaymentResponse); assertEquals(readCommonPaymentService, readPaymentService); }
@Test void getReadPaymentService_standard() { PisCommonPaymentResponse pisCommonPaymentResponse = new PisCommonPaymentResponse(); pisCommonPaymentResponse.setPaymentProduct(STANDARD_PAYMENT_PRODUCT); pisCommonPaymentResponse.setPaymentType(PaymentType.SINGLE); when(readPaymentFactory.getService("payments")).thenReturn(mockReadPaymentService); ReadPaymentService readPaymentService = paymentServiceResolverSupport.getReadPaymentService(pisCommonPaymentResponse); assertEquals(mockReadPaymentService, readPaymentService); }