@Test public void testSurveyFormActionType() { Assert.assertEquals( "expected value mismatch", Survey.DEFAULT_SURVEY_FORM_SUBMIT_ACTION, survey.getFormSubmitAction()); survey.setFormSubmitAction(SurveyFormSubmitAction.STAY_ON_FORM, metaDAO); surveyDAO.save(survey); Assert.assertEquals( "expected value mismatch", SurveyFormSubmitAction.STAY_ON_FORM, survey.getFormSubmitAction()); }