list = new ArrayList(); list.add(DataStore.canolis); list.add(DataStore.chris); baseListModel = new BaseListModel(list.iterator()); listSearcher = new ListSearcher(baseListModel);
assertEquals(list.size(), listSearcher.getSize());
assertEquals(baseListModel.getElementAt(0), listSearcher.getElementAt(0)); assertNotSame(baseListModel.getElementAt(1), listSearcher.getElementAt(0));