595596597598599600601602603604605
list = createMock(List.class); for (int i = 0; i < count; i++) { final int index = i; expect(list.add(index)).andReturn(true); mc.addEventListener(new ManagerEventListener() { public void onManagerEvent(ManagerEvent event) { list.add(index); }