DefaultWorldpayAddonEndpointService implements WorldpayAddonEndpointService { @Override public String getAutoSubmit3DSecureFlex() { return getEndpoint(AUTO_SUBMIT_3D_SECURE_FLEX); }  @Override String getCheckoutSummaryPage(); @Override String getCSEPaymentDetailsPage(); @Override String getHostedOrderPostPage(); @Override String getAutoSubmit3DSecure(); @Override String getBillingAddressForm(); @Override String getKlarnaResponsePage(); @Override String getDdcIframe3dSecureFlex(); @Override String getAutoSubmit3DSecureFlex(); @Override String getChallengeIframe3dSecureFlex();  }
@Test public void shouldReturnPathPrefixedByAddonForAutoSubmit3DSecureFlex() { when(configurationService.getConfiguration()).thenReturn(configuration); when(configuration.getString(WORLDPAY_ADDON_PREFIX, UNDEFINED_PREFIX)).thenReturn(ADDON_PREFIX); final String endpoint = testObj.getAutoSubmit3DSecureFlex(); assertEquals("The endpoint must be prefixed by the addon prefix", ADDON_PREFIX + AUTOSUBMIT3DSECUREFLEX, endpoint); }