@Test
public void writeAsOpenXMLTest() throws IOException, Docx4JException,
		JAXBException {

	Docx4JWordTemplate doc = new Docx4JWordTemplate();
	File file = File.createTempFile("test", "docx");
	OutputStream out = FileUtils.openOutputStream(file);
	try {
		doc.writeAsOpenXML(out);
	} finally {
		IOUtils.closeQuietly(out);
	}
	ZipFile zipFile = new ZipFile(file);
	ZipEntry entry = zipFile.getEntry("word/document.xml");
	assertNotNull(entry);
}