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

	Docx4JWordTemplate doc = new Docx4JWordTemplate();
	File file = File.createTempFile("test", "docx");
	OutputStream out = FileUtils.openOutputStream(file);
	try {
		doc.writeAsOPCXml(out);
	} finally {
		IOUtils.closeQuietly(out);
	}
	String content = FileUtils.readFileToString(file);
	assertTrue(content.startsWith("<?xml"));
}