Docx4JWordTemplate { public List<PlainTextContent> getPlainTextContent() { return plainTextContentControls; } Docx4JWordTemplate();  Docx4JWordTemplate(InputStream in); PlainTextContent addPlainTextContent(); List<PlainTextContent> getPlainTextContent(); void writeAsOPCXml(OutputStream out); void writeAsOpenXML(OutputStream out); void writeAsPDF(OutputStream out);  }
@Test public void loadTemplateWithPlainTextContentTest() throws IOException { InputStream in = getClass().getResourceAsStream( "PlainTextContentControls.docx"); try { Docx4JWordTemplate doc = new Docx4JWordTemplate(in); assertEquals(5, doc.getPlainTextContent().size()); } finally { IOUtils.closeQuietly(in); } }