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