### Question:
XmlPrettyPrinter extends XmlPrinter { public static Builder builder() { return new Builder(); } XmlPrettyPrinter(PrettyPrintedXmlPartCallback partCallback);  XmlPrettyPrinter(PrettyPrintedXmlChunkSink prettyWriter); private  XmlPrettyPrinter(Builder builder); static Builder builder();  }### Answer:
@Test public void simplePrettyPrintTest() throws IOException { String inputXml = "<o><i a='v'>t</i></o>"; String expectedPrettyPrintedXml = "<o>\n" + " <i a='v'>\n" + " t\n" + " </i>\n" + "</o>"; XmlPrettyPrinter.Builder xmlPrettyPrinterBuilder = XmlPrettyPrinter.builder(); xmlPrettyPrintTest(expectedPrettyPrintedXml, inputXml, xmlPrettyPrinterBuilder); }
@Test public void simplePrettyPrintTestAttributeIndent() throws IOException { String inputXml = "<o><i a='v'>t</i></o>"; String expectedPrettyPrintedXml = "<o>\n" + " <i \n" + " a='v'>\n" + " t\n" + " </i>\n" + "</o>"; XmlPrettyPrinter.Builder xmlPrettyPrinterBuilder = XmlPrettyPrinter .builder() .setAttributeIndent(1); xmlPrettyPrintTest(expectedPrettyPrintedXml, inputXml, xmlPrettyPrinterBuilder); }
@Test public void simplePrettyPrintTestTabIndent() throws IOException { String inputXml = "<o><i a='v'>t</i></o>"; String expectedPrettyPrintedXml = "<o>\n" + "\t<i a='v'>\n" + "\t\tt\n" + "\t</i>\n" + "</o>"; XmlPrettyPrinter.Builder xmlPrettyPrinterBuilder = XmlPrettyPrinter .builder() .setTabWidth(2); xmlPrettyPrintTest(expectedPrettyPrintedXml, inputXml, xmlPrettyPrinterBuilder); }