### Question:
PaymentServiceResolverSupport implements PaymentServiceResolver { @Override public ReadPaymentStatusService getReadPaymentStatusService(PisCommonPaymentResponse pisCommonPaymentResponse) { if (standardPaymentProductsResolver.isRawPaymentProduct(pisCommonPaymentResponse.getPaymentProduct())) { return readCommonPaymentStatusService; } return readPaymentStatusFactory.getService(ReadPaymentStatusFactory.SERVICE_PREFIX + pisCommonPaymentResponse.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 getReadPaymentStatusService_raw() { when(standardPaymentProductsResolver.isRawPaymentProduct(RAW_PAYMENT_PRODUCT)).thenReturn(true); PisCommonPaymentResponse pisCommonPaymentResponse = new PisCommonPaymentResponse(); pisCommonPaymentResponse.setPaymentProduct(RAW_PAYMENT_PRODUCT); ReadPaymentStatusService readPaymentStatusService = paymentServiceResolverSupport.getReadPaymentStatusService(pisCommonPaymentResponse); assertEquals(readCommonPaymentStatusService, readPaymentStatusService); }
@Test void getReadPaymentStatusService_standard() { PisCommonPaymentResponse pisCommonPaymentResponse = new PisCommonPaymentResponse(); pisCommonPaymentResponse.setPaymentProduct(STANDARD_PAYMENT_PRODUCT); pisCommonPaymentResponse.setPaymentType(PaymentType.SINGLE); when(readPaymentStatusFactory.getService(ReadPaymentStatusFactory.SERVICE_PREFIX + "payments")).thenReturn(mockReadPaymentStatusService); ReadPaymentStatusService readPaymentStatusService = paymentServiceResolverSupport.getReadPaymentStatusService(pisCommonPaymentResponse); assertEquals(mockReadPaymentStatusService, readPaymentStatusService); }