@Test
public void validate() throws IOException {

	WordTemplate<String> wordTemplate = createWordTemplate("org/wte4j/impl/simpleTemplate.docx");
	when(templateContext.validate("value")).thenReturn(ExpressionError.ILLEGAL_CONTENT_KEY);
	try {
		wordTemplate.validate();
		fail("InvalidTemplateExcption expected");
	} catch (InvalidTemplateException e) {
		assertEquals(ExpressionError.ILLEGAL_CONTENT_KEY, e.getErrors().get("value"));
	}
}