	@Test
	public void testHTTPAlertTemplateNegative() {

		AlertTemplateValidator validator = new AlertTemplateValidator();
		AlertTemplate template = new AlertTemplate((short)2);
		template.setMedia("http");
		template.setSubject("hello");
		template.setBody("hello $x");
		template.setTemplateName("Template");
		template.setDestination("htt://google.com");
		try {
			validator.validate(template);
			fail("Invalid template, can't pass test");
		} catch (ValidationException e) {
		}
		template.setDestination("smtp://google.com");
		try {
			validator.validate(template);
			fail("Invalid template, can't pass test");
		} catch (ValidationException e) {
		}
	}