@Test
public void simple() throws Exception {

    // given
    InputStream in= new FileInputStream(new File("src/test/java/org/apache/isis/subdomains/xdocreport/applib/service/example/template/Project-template.docx"));
    final byte[] templateBytes = IOUtils.toByteArray(in);
    Project project = new Project("XDocReport");
    List<Developer> developers = new ArrayList<>();
    developers.add(new Developer("ZERR", "Angelo", "angelo.zerr@gmail.com"));
    developers.add(new Developer("Leclercq", "Pascal", "pascal.leclercq@gmail.com"));
    final ProjectDevelopersModel dataModel = new ProjectDevelopersModel(project, developers);
    // when
    final byte[] docxBytes = service.render(templateBytes, dataModel, OutputType.DOCX);
    // then
    new File("target").mkdir(); // create the target folder if needed [gradle]
    IOUtils.write(docxBytes,new FileOutputStream(new File("target/Project.docx")));
}