### Question:
WordUtil { public static void createWithBorders(String filename, String content) throws IOException { XWPFDocument document = new XWPFDocument(); FileOutputStream out = new FileOutputStream(new File(filename)); XWPFParagraph paragraph = document.createParagraph(); paragraph.setBorderBottom(Borders.BASIC_BLACK_DASHES); paragraph.setBorderLeft(Borders.BASIC_BLACK_DASHES); paragraph.setBorderRight(Borders.BASIC_BLACK_DASHES); paragraph.setBorderTop(Borders.BASIC_BLACK_DASHES); XWPFRun run = paragraph.createRun(); run.setText(content); 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 testCreateDocxWithBorder() { 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.createWithBorders("d: } catch (IOException e) { e.printStackTrace(); } }