DefaultWorldpayUrlService extends AbstractWorldpayUrlService { @Override public String getBaseWebsiteUrlForSite() throws WorldpayConfigurationException { return getFullUrl(EMPTY_STRING, true); }  @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 shouldReturnBaseURLForCurrentSite() throws Exception { when(baseSiteServiceMock.getCurrentBaseSite()).thenReturn(currentBaseSiteMock); when(siteBaseUrlResolutionServiceMock.getWebsiteUrlForSite(currentBaseSiteMock, true, EMPTY_URL)).thenReturn(FULL_SITE_URL); final String result = testObj.getBaseWebsiteUrlForSite(); assertEquals(FULL_SITE_URL, result); }