Assert.assertTrue(message.equals(ApplicationConstants.PASSWORD_MISMATCH));
}
@Test
public void userAlreadyRegistered() {
RegisterForm registerForm = new RegisterForm();
registerForm.email="sgf2110@columbia.edu";
registerForm.firstName="Susan";
registerForm.lastName="Fung";
registerForm.password="abc";
registerForm.password2="abc";
registerForm.isEnabled=ApplicationConstants.TRUE;
String message = registerForm.validate();
Assert.assertTrue(message.equals(ApplicationConstants.USER_ALREADY_REGISTERED));
}