	@Test
	public void testSlackAlertTemplateNegative() {

		AlertTemplateValidator validator = new AlertTemplateValidator();
		AlertTemplate template = new AlertTemplate((short)2);
		template.setMedia("slack");
		template.setSubject("hello");
		template.setBody("hello $x");
		template.setTemplateName("Template");
		template.setDestination("ABC@slack-channel");
		try {
			validator.validate(template);
			fail("Invalid template, can't pass test");
		} catch (ValidationException e) {
		}
		template.setDestination("ANV@slack#channel");
		try {
			validator.validate(template);
			fail("Invalid template, can't pass test");
		} catch (ValidationException e) {
		}
	}