@Verifies(value = "should allow xml containing encounter type tag for a form with no encounter type", method = "validate(Object,Errors)")
public void validate_shouldAllowXmlContainingEncounterTypeTagForAFormWithNoEncounterType() throws Exception {
String xml = "<htmlform>Date: <encounterDate/>Location: <encounterLocation/>Provider: <encounterProvider role=\"Provider\"/>Encounter Type: <encounterType /><submit/></htmlform>";
HtmlForm htmlForm = new HtmlForm();
htmlForm.setName("testForm");
Form form = Context.getFormService().getForm(1);
Assert.assertNull(form.getEncounterType());
htmlForm.setForm(form);
htmlForm.setXmlData(xml);
Errors errors = new BindException(htmlForm, "htmlForm");
new HtmlFormValidator().validate(htmlForm, errors);
Assert.assertFalse(errors.hasErrors());