### Question:
WordUtil { public static void create(String filename) throws IOException { XWPFDocument document = new XWPFDocument(); FileOutputStream out = new FileOutputStream(new File(filename)); document.write(out); out.close(); System.out.printf("create %s written successully\n", filename); }  static void create(String filename); static void create(String filename, String content); static void createWithBorders(String filename, String content); static void createWithTable(String filename); static void createWithFontStyle(String filename); static void createWithAlign(String filename); static void extractor(String filename); static void setDocxProperties(String filename); static void setDocProperties(String filename);  }### Answer:
@Test public void testCreateDocx() { try { WordUtil.create("d: } catch (IOException e) { e.printStackTrace(); } }
@Test public void testCreateDocxWithContent() { StringBuilder sb = new StringBuilder(); sb.append("At tutorialspoint.com, we strive hard to "); sb.append("provide quality tutorials for self-learning "); sb.append("purpose in the domains of Academics, Information "); sb.append("Technology, Management and Computer Programming Languages."); try { WordUtil.create("d: } catch (IOException e) { e.printStackTrace(); } }