StringBundler implements Serializable { @Override public String toString() { return _toString(_array, _arrayIndex); } StringBundler();  StringBundler(int initialCapacity);  StringBundler(String s);  StringBundler(String[] stringArray);  StringBundler(String[] stringArray, int extraSpace); static String concat(Object... objects); static String concat(String... strings); StringBundler append(boolean b); StringBundler append(char c); StringBundler append(char[] chars); StringBundler append(double d); StringBundler append(float f); StringBundler append(int i); StringBundler append(long l); StringBundler append(Object object); StringBundler append(String s); StringBundler append(String[] stringArray); StringBundler append(StringBundler sb); int capacity(); String[] getStrings(); int index(); int length(); void setIndex(int newIndex); void setStringAt(String s, int index); String stringAt(int index); @Override String toString(); void writeTo(Writer writer);  }
@Test public void testToString() { StringBundler sb = new StringBundler(); sb.append("test1"); sb.append("test2"); sb.append("test3"); Assert.assertEquals("test1test2test3", sb.toString()); sb.append("test4"); Assert.assertEquals("test1test2test3test4", sb.toString()); }
@Test public void testToStringEmpty() { StringBundler sb = new StringBundler(); Assert.assertEquals(StringPool.BLANK, sb.toString()); }