}
@Test
public void complexExpression() throws Exception {
//<visibility expression="(multichoice == 'two' OR checkbox != 'checked' OR textfield == 'hi') AND filechooser == 'some/file'"/>
Survey model = new Survey(new XMLSurveyReader(new File("src\\test\\org\\jsurveylib\\model\\script\\enablehandlerfiles\\complexexpression.xml")));
assertFalse(model.getQuestionByID("withparens").isEnabled());
model.setAnswer("multichoice", "two");
model.setAnswer("checkbox", "unchecked");
model.setAnswer("textfield", "hi");
model.setAnswer("filechooser", "false");
assertFalse(model.getQuestionByID("withparens").isEnabled());
assertTrue(model.getQuestionByID("withoutparens").isEnabled());
model.setAnswer("filechooser", "some/file");
assertTrue(model.getQuestionByID("withparens").isEnabled());
assertTrue(model.getQuestionByID("withoutparens").isEnabled());
}