public class SetResponsePageTest extends WicketTestCase
{
public void testSetResponsePage()
{
WicketTester tester = new WicketTester(Page1.class);
<BUG>tester.setupRequestAndResponse();
tester.getServletRequest()
.setURL("?wicket:bookmarkablePage=:" + Page1.class.getName() + "");
tester.processRequestCycle();</BUG>
tester.assertRenderedPage(Page3.class);

public class SetResponsePageTest extends WicketTestCase
{
public void testSetResponsePage()
{
WicketTester tester = new WicketTester(Page1.class);
tester.setupRequestAndResponse();
tester.startPage(Page1.class);
tester.assertRenderedPage(Page3.class);
