MockContainer container = new MockContainer("web");
container.start();
String contextPath = container.getRequest().getContextPath();
container.getRequest().setMethod("GET");
RedirectToJsp page = (RedirectToJsp) container.testPage(RedirectToJsp.class);
// assert that the Page successfully redirected to jsp-page.htm, meaning
// Click converted the Page JSP template from jsp-page.jsp to jsp-page.htm
String expected = contextPath + "/jsp-page.htm";
assertEquals(expected, container.getRedirect());