assertTrue(fastStringBuffer.startsWith("a"));
assertTrue(fastStringBuffer.startsWith("ab"));
assertTrue(!fastStringBuffer.startsWith("abcd"));
fastStringBuffer.setCharAt(0, 'h');
assertTrue(fastStringBuffer.startsWith("hb"));
}
public void testReplace() throws Exception {
assertEquals("def", new FastStringBuffer("abcdefabc", 0).replaceAll("abc", "").toString());
assertEquals("xyzdef", new FastStringBuffer("abcdef", 0).replaceAll("abc", "xyz").toString());