/** Test of <code>toStrings</code>. */
public void testToStrings() {
Summary[] summaries = { new Summary(), new Summary() };
summaries[0].add(new Fragment("fragment1.1"));
summaries[0].add(new Ellipsis());
summaries[0].add(new Highlight("highlight1"));
summaries[0].add(new Fragment("fragment1.2"));
summaries[1].add(new Fragment("fragment2.1"));
summaries[1].add(new Ellipsis());
summaries[1].add(new Highlight("highlight2"));
summaries[1].add(new Fragment("fragment2.2"));
String[] strings = Summary.toStrings(summaries);
assertEquals(2, strings.length);
assertEquals("fragment1.1 ... highlight1fragment1.2", strings[0]);
assertEquals("fragment2.1 ... highlight2fragment2.2", strings[1]);