// continueto originaldestination does not work if there is no url
// available, so we need to fake one here(testing only hack)
mock.setupRequestAndResponse();
WebRequestCycle cycle = mock.createRequestCycle();
String url1 =
cycle.urlFor(new BookmarkablePageRequestTarget(SecureLinkPage.class, null)).toString();
mock.getServletRequest().setURL("/WaspAbstractTestBase$1/WaspAbstractTestBase$1/" + url1);
mock.processRequestCycle();
mock.assertRenderedPage(getLoginPage());
FormTester form = mock.newFormTester("signInPanel:signInForm");
form.setValue("username", "test");