WorldpayThreeDSecureFlexEndpointController extends AbstractWorldpayDirectCheckoutStepController { @GetMapping(value = "/response/autosubmit") @RequireHardLogIn public String getThreeDSecureResponseAutosubmit(final HttpServletRequest request, final ThreeDSecureFlexForm threeDSecureFlexForm, final RedirectAttributes redirectAttributes) { return configurationService.getConfiguration().getString(WORLDPAY_ADDON_PREFIX, UNDEFINED_PREFIX) + CHECKOUT_3DSECUREFLEX_RESPONSE_AUTOSUBMIT; }  @PostMapping(value = "/response") @RequireHardLogIn String doHandleThreeDSecureResponse(final HttpServletRequest request, final ThreeDSecureFlexForm threeDSecureFlexForm, final RedirectAttributes redirectAttributes); @GetMapping(value = "/response/autosubmit") @RequireHardLogIn String getThreeDSecureResponseAutosubmit(final HttpServletRequest request, final ThreeDSecureFlexForm threeDSecureFlexForm, final RedirectAttributes redirectAttributes); @PostMapping(value = "/response/autosubmit") @RequireHardLogIn String doHandleThreeDSecureResponse(final HttpServletRequest request, @ModelAttribute(B2B_CSE_PAYMENT_FORM) final B2BCSEPaymentForm b2bCSEPaymentForm, final Model model, final HttpServletResponse response);  }
@Test public void testGetThreeDSecureResponseAutosubmit() { final String response = testObj.getThreeDSecureResponseAutosubmit(requestMock, threeDSecureFlexFormMock, redirectAttributesMock); Assert.assertEquals(ADDON_WORLDPAYADDON + CHECKOUT_3DSECUREFLEX_RESPONSE_AUTOSUBMIT, response); }