### Question:
CountryPaymentValidatorResolver { CountryValidatorHolder getCountryValidatorHolder() { String supportedPaymentCountryCode = aspspProfileServiceWrapper.getSupportedPaymentCountryValidation(); return countryValidators.getOrDefault(StringUtils.upperCase(supportedPaymentCountryCode), countryValidators.get(DEFAULT)); } @Autowired  CountryPaymentValidatorResolver(AspspProfileServiceWrapper aspspProfileServiceWrapper,
                                           List<CountryValidatorHolder> countryValidatorHolders); PaymentBodyFieldsValidator getPaymentBodyFieldValidator(); PaymentBusinessValidator getPaymentBusinessValidator();  }### Answer:
@Test void getValidationConfig_nullValue() { when(aspspProfileServiceWrapper.getSupportedPaymentCountryValidation()).thenReturn(null); assertTrue(resolver.getCountryValidatorHolder() instanceof DefaultPaymentValidatorHolder); }
@Test void getValidationConfig_emptyValue() { when(aspspProfileServiceWrapper.getSupportedPaymentCountryValidation()).thenReturn(""); assertTrue(resolver.getCountryValidatorHolder() instanceof DefaultPaymentValidatorHolder); }
@Test void getValidationConfig_wrongValue() { when(aspspProfileServiceWrapper.getSupportedPaymentCountryValidation()).thenReturn("wrong value"); assertTrue(resolver.getCountryValidatorHolder() instanceof DefaultPaymentValidatorHolder); }
@Test void getValidationConfig_DE() { when(aspspProfileServiceWrapper.getSupportedPaymentCountryValidation()).thenReturn("dE"); assertTrue(resolver.getCountryValidatorHolder() instanceof DefaultPaymentValidatorHolder); }
@Test void getValidationConfig_AT() { when(aspspProfileServiceWrapper.getSupportedPaymentCountryValidation()).thenReturn("At"); assertTrue(resolver.getCountryValidatorHolder() instanceof AustriaPaymentValidatorHolder); }