DefaultWorldpayMerchantConfigDataService implements WorldpayMerchantConfigDataService, ApplicationContextAware { @Override public Map<String, WorldpayMerchantConfigData> getMerchantConfiguration() { final String merchantConfigurationBeanName = siteConfigService.getProperty(WORLDPAY_MERCHANT_CONFIG); return getConfiguredMerchants(merchantConfigurationBeanName); }  @Override Map<String, WorldpayMerchantConfigData> getMerchantConfiguration(); @Override void setApplicationContext(final ApplicationContext applicationContext); @Required void setSiteConfigService(final SiteConfigService siteConfigService);  }
@Test public void testGetMerchantConfigurationWhenNotInAThreadContext() throws Exception { testObj.getMerchantConfiguration(); verify(siteConfigServiceMock).getProperty(WORLDPAY_MERCHANT_CONFIG); verify(applicationContextMock).getBean(MERCHANT_CONFIG_BEAN_NAME); }