ScheduleList { public ScheduleItem get(int position) { throwIfWriting(); return dataset.get(position); } ScheduleList(ItemChangeCallback callback); int size(); void swapData(Iterable<ScheduleItem> newDataSet); ScheduleItem get(int position); ScheduleItem getById(long scheduleId); void clear();  }
@Test public void testGet() throws Exception { assertEquals(ID_2_OLD, scheduleList.get(0)); assertEquals(ID_3_OLD, scheduleList.get(1)); assertEquals(ID_1_OLD, scheduleList.get(2)); }