Assert.assertFalse(page.isSubmitLinkSubmitted());
Assert.assertFalse(page.isFormSubmitted());
FormTester formTester = tester.newFormTester("form");
formTester.submitLink("link", false);
page = (FormPage2)tester.getLastRenderedPage();
Assert.assertTrue(page.isFormSubmitted());
Assert.assertTrue(page.isSubmitLinkSubmitted());