public virtual void testConsumeWordInstance()
        {
            // we use the default locale, as its randomized by LuceneTestCase
            BreakIterator     bi = BreakIterator.getWordInstance(Locale.Default);
            CharArrayIterator ci = CharArrayIterator.newWordInstance();

            for (int i = 0; i < 10000; i++)
            {
                char[] text = TestUtil.randomUnicodeString(random()).toCharArray();
                ci.setText(text, 0, text.Length);
                consume(bi, ci);
            }
        }
 public virtual void testWordInstance()
 {
     doTests(CharArrayIterator.newWordInstance());
 }