@Test
public void testActionPhases() throws Exception
{
HtmlPage firstPage = getWebClient("/action").getPage();
// reload so we get a postback that visits all the phases
HtmlPage secondPage = firstPage.getHtmlElementById("form:reload").click();
String secondPageContent = secondPage.getWebResponse().getContentAsString();
assertContains(secondPageContent, "Action 1 = RESTORE_VIEW");
assertContains(secondPageContent, "Action 2 = RENDER_RESPONSE");
assertContains(secondPageContent, "Action 3 = INVOKE_APPLICATION");
}