public void testSingleSentences() throws Exception {
  BreakIterator expected=BreakIterator.getSentenceInstance(Locale.ROOT);
  BreakIterator actual=new WholeBreakIterator();
  assertSameBreaks("a",expected,actual);
  assertSameBreaks("ab",expected,actual);
  assertSameBreaks("abc",expected,actual);
  assertSameBreaks("",expected,actual);
}

public void testSingleSentences ( ) throws Exception { BreakIterator expected = BreakIterator . getSentenceInstance ( Locale . ROOT ) ; BreakIterator actual = new WholeBreakIterator ( ) ; assertSameBreaks ( "a" , expected , actual ) ; assertSameBreaks ( "ab" , expected , actual ) ; assertSameBreaks ( "abc" , expected , actual ) ; assertSameBreaks ( "" , expected , actual ) ; }
for single sentences , we know wholebreakiterator should break the same as a sentence iterator
