private static final String PACKAGE = "org.apache.tapestry5.integration.app2";
@Test
public void on_activate_chain_is_followed()
{
PageTester tester = new PageTester(PACKAGE, "", "src/test/app2");
Document launchDoc = tester.renderPage("Launch");
Map<String, String> parameters = Collections.emptyMap();
// Submit the form, which will then skip through Intermediate and
// arrive at Final.
Document finalDoc = tester.submitForm(launchDoc.getElementById("form"), parameters);
assertEquals(finalDoc.getElementById("page-name").getChildMarkup(), "Final");
tester.shutdown();
}