@Test
public void encounterLocationTag_shouldSupportDefaultSelectyByGlobalProperty() throws Exception {
String GP_NAME = "kenyaemr.defaultLocation";
String GP_VALUE = "2";
Assert.assertNotNull(Context.getLocationService().getLocation(Integer.valueOf(GP_VALUE)));
Context.getAdministrationService().saveGlobalProperty(new GlobalProperty(GP_NAME, GP_VALUE));
String htmlform = "<htmlform><encounterLocation default=\"GlobalProperty:" + GP_NAME + "\"/></htmlform>";
FormEntrySession session = new FormEntrySession(null, htmlform, null);
Matcher matcher = Pattern.compile("<option.+?value=\"(.+?)\".+?selected=\"true\".*?>").matcher(session.getHtmlToDisplay());