### Question:
PaymentServiceResolverSupport implements PaymentServiceResolver { @Override public CreatePaymentService getCreatePaymentService(PaymentInitiationParameters paymentInitiationParameters) { if (standardPaymentProductsResolver.isRawPaymentProduct(paymentInitiationParameters.getPaymentProduct())) { return createCommonPaymentService; } if (PaymentType.SINGLE == paymentInitiationParameters.getPaymentType()) { return createSinglePaymentService; } else if (PaymentType.PERIODIC == paymentInitiationParameters.getPaymentType()) { return createPeriodicPaymentService; } else { return createBulkPaymentService; } }  @Override CreatePaymentService getCreatePaymentService(PaymentInitiationParameters paymentInitiationParameters); @Override ReadPaymentService getReadPaymentService(CommonPaymentData commonPaymentData); @Override ReadPaymentStatusService getReadPaymentStatusService(PisCommonPaymentResponse pisCommonPaymentResponse); @Override CancelPaymentService getCancelPaymentService(PisPaymentCancellationRequest paymentCancellationRequest);  }### Answer:
@Test void getCreatePaymentService_raw() { when(standardPaymentProductsResolver.isRawPaymentProduct(RAW_PAYMENT_PRODUCT)).thenReturn(true); PaymentInitiationParameters paymentInitiationParameters = buildPaymentInitiationParameters(RAW_PAYMENT_PRODUCT, PaymentType.SINGLE); CreatePaymentService createPaymentService = paymentServiceResolverSupport.getCreatePaymentService(paymentInitiationParameters); assertEquals(createCommonPaymentService, createPaymentService); }
@Test void getCreatePaymentService_single() { PaymentInitiationParameters paymentInitiationParameters = buildPaymentInitiationParameters(STANDARD_PAYMENT_PRODUCT, PaymentType.SINGLE); CreatePaymentService createPaymentService = paymentServiceResolverSupport.getCreatePaymentService(paymentInitiationParameters); assertEquals(createSinglePaymentService, createPaymentService); }
@Test void getCreatePaymentService_periodic() { PaymentInitiationParameters paymentInitiationParameters = buildPaymentInitiationParameters(STANDARD_PAYMENT_PRODUCT, PaymentType.PERIODIC); CreatePaymentService createPaymentService = paymentServiceResolverSupport.getCreatePaymentService(paymentInitiationParameters); assertEquals(createPeriodicPaymentService, createPaymentService); }
@Test void getCreatePaymentService_bulk() { PaymentInitiationParameters paymentInitiationParameters = buildPaymentInitiationParameters(STANDARD_PAYMENT_PRODUCT, PaymentType.BULK); CreatePaymentService createPaymentService = paymentServiceResolverSupport.getCreatePaymentService(paymentInitiationParameters); assertEquals(createBulkPaymentService, createPaymentService); }