formTester.setValue("passwordRequested", "newuser");
formTester.setValue("passwordConfirm", "newuser");
formTester.submit("register");
tester.assertRenderedPage(LoginPage.class);
SimalSession sessionData = SimalSession.get();
assertTrue("User not authenticated", sessionData.isAuthenticated());
formTester = tester.newFormTester("registrationForm");
formTester.setValue("usernameRequested", username);
formTester.setValue("passwordRequested", "newuser");
formTester.setValue("passwordConfirm", "newuser");