### Question:
XMLUtils { public static String prettyPrint( String xml ) { return prettyPrint( xml, INDENT_NUMBER ); }  static String prettyPrint( String xml ); static String prettyPrint( String xml, int indent ); static AttributesImpl toAttributesImpl( Attributes attributes ); static final Integer INDENT_NUMBER; static final List<IXMLPrettyPrinter> PRINTERS; }### Answer:
@Test public void testPrettyPrint() { String xml = "<a><b>c</b></a>"; System.out.println( prettyPrint( xml ) ); long start = System.currentTimeMillis(); char[] padding = new char[4]; Arrays.fill( padding, ' ' ); assertEquals( "<a>" + LINE_SEPARATOR + String.copyValueOf( padding ) + "<b>c</b>" + LINE_SEPARATOR + "</a>" + LINE_SEPARATOR, prettyPrint( xml ) ); System.out.println( "time spent " + ( System.currentTimeMillis() - start ) ); }
@Test public void testPrettyPrint2Indent() { int ident = 2; String xml = "<a><b>c</b></a>"; System.out.println( prettyPrint( xml, 2 ) ); long start = System.currentTimeMillis(); char[] padding = new char[ident]; Arrays.fill( padding, ' ' ); assertEquals( "<a>" + LINE_SEPARATOR + String.copyValueOf( padding ) + "<b>c</b>" + LINE_SEPARATOR + "</a>" + LINE_SEPARATOR, prettyPrint( xml, ident ) ); System.out.println( "time spent " + ( System.currentTimeMillis() - start ) ); }