DefaultWorldpayUrlService extends AbstractWorldpayUrlService { @Override public String getWebsiteUrlForCurrentSite() { return siteBaseUrlResolutionService.getWebsiteUrlForSite(baseSiteService.getCurrentBaseSite(), true, null); }  @Override String getWebsiteUrlForCurrentSite(); @Override String getFullSuccessURL(); @Override String getFullPendingURL(); @Override String getFullFailureURL(); @Override String getFullCancelURL(); @Override String getFullErrorURL(); @Override String getFullThreeDSecureTermURL(); @Override String getFullThreeDSecureQuoteTermURL(); @Override String getFullTermsUrl(); @Override String getBaseWebsiteUrlForSite(); @Override String getKlarnaConfirmationURL(); @Override String getFullThreeDSecureFlexFlowReturnUrl(); @Override String getFullThreeDSecureFlexAutosubmitUrl(); BaseSiteService getBaseSiteService(); @Required void setBaseSiteService(final BaseSiteService baseSiteService); @Required void setSiteBaseUrlResolutionService(final SiteBaseUrlResolutionService siteBaseUrlResolutionService);  }
@Test public void testReturnCurrentBaseSiteDomain() { when(baseSiteServiceMock.getCurrentBaseSite()).thenReturn(currentBaseSiteMock); when(siteBaseUrlResolutionServiceMock.getWebsiteUrlForSite(currentBaseSiteMock, true, null)).thenReturn(URL); testObj.getWebsiteUrlForCurrentSite(); }