TextFormatter { public static String indent(String input) { return indent( input , " " ); }  static String indent(String input); static String indent(String input, String padding); static String unindent(String input); static String vertical( String text ); static String wrap(String str); static String wrap(String str,  int wrapLength, String newLineStr, boolean wrapLongWords);  }
@Test public void testIndent() throws Exception { assertEquals( " hello\n", indent( "hello" ) ); assertEquals( " hello\n" + " world\n", indent( "hello\nworld" ) ); assertEquals( " hello\n" + " world\n", indent( "hello\nworld\n" ) ); assertEquals( " hello\n" + " world\n", indent( "hello\nworld\n\n" ) ); assertEquals( " hello\n" + " world\n", indent( "hello\nworld\n\n\n\n" ) ); assertEquals( " hello\n" + " \n" + " world\n", indent( "hello\n\nworld\n\n\n\n" ) ); }