	@Test
	public void getGlobalProperty_shouldReturnEmptyStringIfGpDoesntExist() throws Exception {

		// add a simple template to our db
		HL7Template t = new HL7Template();
		t.setName("nonexistantgptemplate");
		t.setLanguage(HL7QueryService.LANGUAGE_GROOVY);
		t.setTemplate("-${ func.getGlobalProperty('nonexistantgp') }-");
		Context.getService(HL7QueryService.class).saveHL7Template(t);
		
		HL7TemplateFunctions functions = new HL7TemplateFunctions();
		
		Assert.assertEquals("--", functions.evaluateTemplate("nonexistantgptemplate", null));
	}