assertEquals("", buf.toString());
buf = new FastStringBuffer("foo", 0);
buf.rightTrim();
assertEquals("foo", buf.toString());
buf = new FastStringBuffer("foo ", 0);
buf.rightTrim();
assertEquals("foo", buf.toString());
buf = new FastStringBuffer("foo bar", 0);
buf.rightTrim();
assertEquals("foo bar", buf.toString());
buf = new FastStringBuffer("foo bar ", 0);