public void test(TestHarness harness)
{
harness.checkPoint("toArray()");
DefaultListModel m1 = new DefaultListModel();
m1.addElement("A");
m1.addElement("B");
Object[] a1 = m1.toArray();
harness.check(a1.length, 2);
harness.check(a1[0], "A");
harness.check(a1[1], "B");