public class TextUtilsTest extends TestCase {
public void testDrawingTextTruncated() {
/* Word boundaries at 4, 11, 16, 21, 24 & 34 */
final String title = "test string that will be truncated";
final Text style = new DummyText();
assertEquals("test string that will be truncated", TextUtils.limitText(title, style, 340));
assertEquals("test string that will be...", TextUtils.limitText(title, style, 339));