@Test
public void writeFileTest() throws IOException {

	WordTemplate<String> template = createWordTemplate(EMPTY_WORD);
	File templateFile = File.createTempFile("template", "docx");
	long length = templateFile.length();
	try {
		template.write(templateFile);
		assertTrue("File has not been writen",
				templateFile.length() > length);
	} finally {
		templateFile.delete();
	}
}