### Question:
PrettyTree { public void renderRoot(Node root, StringBuilder buffer) { renderParentNode(root, 0, buffer); }  void renderRoot(Node root, StringBuilder buffer);  }### Answer:
@Test public void testPrintRoot() { Node p11 = new Node("p1-1"); Node p12 = new Node("p1-2"); Node p1 = new Node("p1"); p1.add(p11); p1.add(p12); Node p21 = new Node("p21"); Node p2 = new Node("p2"); p12.add(p21); Node root = new Node("Root"); root.add(p1); root.add(p2); StringBuilder buffer = new StringBuilder(256); PrettyTree pt = new PrettyTree(); pt.renderRoot(root, buffer); System.out.print(buffer.toString()); }